openjump-gis / openjump

OpenJUMP, the Open Source GIS with more than one trick in its kangaroo pocket, takes the leap from svn to git. join the effort!
http://openjump.org
GNU General Public License v2.0
28 stars 14 forks source link

Attribute column shrinking #68

Closed mukoki closed 1 year ago

mukoki commented 1 year ago

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.

mukoki commented 1 year ago

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.