mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 02:05:42 +00:00
Bug 817749: Remove touch delegate in tabs-panel. [r=mfinkle]
This commit is contained in:
parent
81599612b5
commit
10ee904d01
@ -185,21 +185,6 @@ public class TabsPanel extends TabHost
|
||||
}
|
||||
});
|
||||
|
||||
// Set a touch delegate to Add-Tab button, so the touch events on its tail
|
||||
// are passed to the menu button.
|
||||
if (!GeckoApp.mAppContext.isTablet()) {
|
||||
post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
int height = mAddTab.getHeight();
|
||||
int width = mAddTab.getWidth();
|
||||
int tail = (int) (height * 1.125) / 2;
|
||||
Rect bounds = new Rect(width - tail, 0, width, height);
|
||||
mAddTab.setTouchDelegate(new TailTouchDelegate(bounds, mMenuButton));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
mPopupMenu.setAnchor(mMenuButton);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user