Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Unified Diff: athena/home/home_card_impl.cc

Issue 465803002: Make the minimized home card not overlap activities on Athena (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | athena/main/athena_launcher.h » ('j') | athena/screen/public/screen_manager.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/home/home_card_impl.cc
diff --git a/athena/home/home_card_impl.cc b/athena/home/home_card_impl.cc
index 6fb544f1cf04e462030ca3ec2b1d954ab24f770d..dad64d9a653101ad41ef0936358c8d1a9ec96a6e 100644
--- a/athena/home/home_card_impl.cc
+++ b/athena/home/home_card_impl.cc
@@ -460,6 +460,12 @@ void HomeCardImpl::Init() {
aura::client::GetActivationClient(container->GetRootWindow());
if (activation_client_)
activation_client_->AddObserver(this);
+
+ int work_area_bottom_inset =
+ GetBoundsForState(GetNativeWindow()->bounds(),
+ HomeCard::VISIBLE_MINIMIZED).height();
+ ScreenManager::Get()->SetWorkAreaInsets(
+ gfx::Insets(0, 0, work_area_bottom_inset, 0));
}
void HomeCardImpl::InstallAccelerators() {
« no previous file with comments | « no previous file | athena/main/athena_launcher.h » ('j') | athena/screen/public/screen_manager.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698