am 2cb2471e: Ensure we pass search bar bounds to GoogleSearch. (Bug 11968598)
* commit '2cb2471e7fbade9a785c523df5941f2855e99041': Ensure we pass search bar bounds to GoogleSearch. (Bug 11968598)
This commit is contained in:
@@ -449,10 +449,12 @@ public class DeviceProfile {
|
|||||||
// that into account here too.
|
// that into account here too.
|
||||||
int gap = (int) ((width - 2 * edgeMarginPx -
|
int gap = (int) ((width - 2 * edgeMarginPx -
|
||||||
(numColumns * cellWidthPx)) / (2 * (numColumns + 1)));
|
(numColumns * cellWidthPx)) / (2 * (numColumns + 1)));
|
||||||
bounds.set(edgeMarginPx + gap, 0, availableWidthPx - (edgeMarginPx + gap),
|
bounds.set(edgeMarginPx + gap, getSearchBarTopOffset(),
|
||||||
|
availableWidthPx - (edgeMarginPx + gap),
|
||||||
searchBarSpaceHeightPx);
|
searchBarSpaceHeightPx);
|
||||||
} else {
|
} else {
|
||||||
bounds.set(desiredWorkspaceLeftRightMarginPx - defaultWidgetPadding.left, 0,
|
bounds.set(desiredWorkspaceLeftRightMarginPx - defaultWidgetPadding.left,
|
||||||
|
getSearchBarTopOffset(),
|
||||||
availableWidthPx - (desiredWorkspaceLeftRightMarginPx -
|
availableWidthPx - (desiredWorkspaceLeftRightMarginPx -
|
||||||
defaultWidgetPadding.right), searchBarSpaceHeightPx);
|
defaultWidgetPadding.right), searchBarSpaceHeightPx);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user