mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
Merge remote-tracking branch
'origin/GP-3202_ghidragon_fieldpanel_scrollbar_bug' (Closes #3938)
This commit is contained in:
@@ -212,24 +212,9 @@ public class IndexedScrollPane extends JPanel implements IndexScrollListener {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean getScrollableTracksViewportWidth() {
|
public boolean getScrollableTracksViewportWidth() {
|
||||||
int prefWidth = comp.getPreferredSize().width;
|
return false;
|
||||||
int scrollPaneWidth = getScrollPaneWidth();
|
|
||||||
return scrollPaneWidth > prefWidth;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private int getScrollPaneWidth() {
|
|
||||||
Container myParent = getParent();
|
|
||||||
if (myParent == null) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
Container grandParent = myParent.getParent();
|
|
||||||
if (grandParent == null) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
return grandParent.getSize().width;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation,
|
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation,
|
||||||
int direction) {
|
int direction) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user