Fixing issue where incorrect min/max widths/heights were being reported to widgets. (Bug 10940505)

This commit is contained in:
Winson Chung
2013-09-26 16:07:17 -07:00
parent 88cc3f5aa2
commit fe411c8e31
3 changed files with 18 additions and 9 deletions

View File

@@ -290,7 +290,8 @@ class DeviceProfile {
Rect getWorkspacePadding(int orientation) {
Rect padding = new Rect();
if (isVerticalBarLayout()) {
if (orientation == CellLayout.LANDSCAPE &&
transposeLayoutWithOrientation) {
// Pad the left and right of the workspace with search/hotseat bar sizes
padding.set(searchBarSpaceHeightPx, edgeMarginPx,
hotseatBarHeightPx, edgeMarginPx);