mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 16:06:15 +00:00
Fixed issue with column resizing when only one column.
This commit is contained in:
parent
dbdebfa1e4
commit
4142c87919
@ -343,10 +343,11 @@ public class DataResultViewerTable extends AbstractDataResultViewer {
|
||||
//int scrollWidth = ttv.getWidth();
|
||||
int margin = 4;
|
||||
int startColumn = 1;
|
||||
if (props.size() > 0) {
|
||||
ov.getOutline().setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
|
||||
}
|
||||
|
||||
|
||||
// If there is only one column (which was removed from props above)
|
||||
// Just let the table resize itself.
|
||||
ov.getOutline().setAutoResizeMode((props.size() > 0) ? JTable.AUTO_RESIZE_OFF : JTable.AUTO_RESIZE_ALL_COLUMNS);
|
||||
|
||||
|
||||
|
||||
// get first 100 rows values for the table
|
||||
|
Loading…
x
Reference in New Issue
Block a user