don-tnowe / godot-resources-as-sheets-plugin

I needed to edit many Resource files, so figured someone would too.
MIT License
433 stars 19 forks source link

High page count causes editor view to expand beyond viewport bounds (+fix) #63

Closed cedahl closed 3 months ago

cedahl commented 3 months ago

In 4.0 the page count container gets really wide and isn't bound by a parent, causing controls on the right side of the screen to potentially become inaccessible. This can be seen by setting the Rows Per Page count to 2 and opening the Random Upgrades example folder.

image

I needed to fix this for my project which has an obscene number of resources, so let me know if you want the modified editor_view.tscn and table_pages.gd or if I can PR it or something. Here's the result, with a scroll added to the page buttons:

image

don-tnowe commented 3 months ago

Oh, I never got that problem! Good fix, a scroll container is a pretty compact solution.

It does leave some extra margins though, because space must be made for the scrollbar even when scrolling is disabled. Doesn't quite look as neatly packed anymore:

image