mirror of
https://github.com/elisspace/autopsy.git
synced 2026-09-06 02:24:30 +00:00
Fixed issue with column resizing when only one column.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user