mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-13 08:26:15 +00:00
Fixed issue with column resizing when only one column.
This commit is contained in:
parent
dbdebfa1e4
commit
4142c87919
@ -343,9 +343,10 @@ public class DataResultViewerTable extends AbstractDataResultViewer {
|
|||||||
//int scrollWidth = ttv.getWidth();
|
//int scrollWidth = ttv.getWidth();
|
||||||
int margin = 4;
|
int margin = 4;
|
||||||
int startColumn = 1;
|
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);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user