Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

Commit

Permalink
Fix Table offset
Browse files Browse the repository at this point in the history
  • Loading branch information
Laifsyn committed Jun 17, 2024
1 parent f719bc8 commit 33c55a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public JScrollPane as_panel() {

var prefered = scrollPane.getPreferredSize();
int prefered_height = Math.min(MAX_HEIGHT, prefered.height);
int minimum_width = (MAX_HEIGHT < prefered.height) ? prefered.width + scrollPane.getVerticalScrollBar().getWidth() : prefered.width;
int minimum_width = (MAX_HEIGHT < prefered.height) ? prefered.width + 17 : prefered.width;
scrollPane.setPreferredSize(new Dimension(minimum_width, prefered_height));
return scrollPane;
}
Expand Down

0 comments on commit 33c55a1

Please sign in to comment.