mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix scroll in view on selecting tab from "more tabs" popup
This commit is contained in:
+8
@@ -46,6 +46,14 @@ public class ScrollableSingleRowLayout extends SingleRowLayout {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean checkLayoutLabels(SingleRowPassInfo data) {
|
||||
if (myScrollSelectionInViewPending) {
|
||||
return true;
|
||||
}
|
||||
return super.checkLayoutLabels(data);
|
||||
}
|
||||
|
||||
private void clampScrollOffsetToBounds(SingleRowPassInfo data) {
|
||||
if (data.requiredLength < data.toFitLength) {
|
||||
myScrollOffset = 0;
|
||||
|
||||
@@ -101,7 +101,7 @@ public class SingleRowLayout extends TabLayout {
|
||||
return null;
|
||||
}
|
||||
|
||||
private boolean checkLayoutLabels(SingleRowPassInfo data) {
|
||||
protected boolean checkLayoutLabels(SingleRowPassInfo data) {
|
||||
boolean layoutLabels = true;
|
||||
|
||||
if (!myTabs.myForcedRelayout &&
|
||||
|
||||
Reference in New Issue
Block a user