openjump-gis/openjump

Attribute column shrinking

Closed this issue · 1 comments

Sometimes, all columns of attibute panel / info frame shrink to a minimum size so that attribute values are no more readable without manually adjusting each colomn one by one.
This problem had been partially fixed in 2015 (https://sourceforge.net/p/jump-pilot/bugs/388/) but still happens in some cases :
Example : with a layer containing the result of a database query (SQL Query PlugIn), if the query is executed again on the same layer (RefreshDataStoreQueryPlugIn) while features are displayed in the InfoFrame, features are removed from the info frame and all columns shrink. In this case, columns shrink in the info frame, but if we open again the attribute table, the problem is also visible in attribute table.
It may be if interest to note that if only the attribute table is opened while the layer is refreshed, features are replaced in the table but column do not shrink.

The problem arises when the content of a layer is completely changed setting a new dataset with eventually a new FeatureSchema. The problem had been solved in 2015 for the ViewSchemaPlugin but still appeared in RefreshDataStoreQueryPlugIn.
Hopefully it is now solved in a more general way by porting the fix from ViewSchemaPlugIn to AttributeTablePanel.