mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Fixing issue where widgets larger than the workspace were now bounded when dropped. (Bug 6424463);
Change-Id: I8dcabd084d79697933f873d44bb390f608780c3b
This commit is contained in:
@@ -92,7 +92,9 @@ public class PagedViewWidget extends LinearLayout {
|
||||
name.setText(info.label);
|
||||
final TextView dims = (TextView) findViewById(R.id.widget_dims);
|
||||
if (dims != null) {
|
||||
dims.setText(String.format(mDimensionsFormatString, cellSpan[0], cellSpan[1]));
|
||||
int hSpan = Math.min(cellSpan[0], LauncherModel.getCellCountX());
|
||||
int vSpan = Math.min(cellSpan[1], LauncherModel.getCellCountY());
|
||||
dims.setText(String.format(mDimensionsFormatString, hSpan, vSpan));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user