mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 839885 - Update the selected tab style before calling setSelection. r=lucasr
This commit is contained in:
parent
3fc84c2f5f
commit
0243173eb3
@ -202,11 +202,11 @@ public class TabsTray extends TwoWayView
|
||||
// Updates the selected position in the list so that it will be scrolled to the right place.
|
||||
private void updateSelectedPosition() {
|
||||
int selected = getPositionForTab(Tabs.getInstance().getSelectedTab());
|
||||
updateSelectedStyle(selected);
|
||||
|
||||
if (selected != -1) {
|
||||
TabsTray.this.setSelection(selected);
|
||||
}
|
||||
|
||||
updateSelectedStyle(selected);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user