godot/scene/gui
GrammAcc 3c3fad858c AssetLib: Fix long plugin names breaking the UI
The UI was extending past the screen width when loading a page diplaying
a plugin with an especially long title in the asset store plugin.

I implemented a new `EditorAssetLibraryItem::clamp_width` method that
checks that the title text is not longer than the column width minus
some padding and truncates it if it is.

I also noticed that the nav buttons for paginated results were causing the UI to extend past
the screen width on higher editor scales since they were hardcoded to
show ten page buttons if there were enough results. I modified the
pagination slightly to display a dynamic number of nav buttons based on
the editor scale in order to fix this other cause of the same problem.

I had to use the font of the `title`, which is a `LinkButton` in order
to determine the text width, so I added a public getter `get_button_font` to the `LinkButton` class.

(cherry picked from commit d63a88bef1)
2023-10-24 18:17:02 +02:00
..
SCsub
aspect_ratio_container.cpp Fix crash with AspectRatioContainer and TextureRect 2023-02-16 14:35:09 +01:00
aspect_ratio_container.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
base_button.cpp Fix ButtonGroup unpressing 2023-06-16 00:15:37 +02:00
base_button.h Add option for ButtonGroups to be unpressed 2023-04-20 17:09:39 -06:00
box_container.cpp Use BitField<> hint for ArrayFormat 2023-01-08 18:47:48 +01:00
box_container.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
button.cpp Fix Button text when overrun is not trim nothing 2023-09-21 14:09:19 +02:00
button.h Make `TextureButton` and `Button` update on texture change 2023-05-29 16:40:56 +02:00
center_container.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
center_container.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
check_box.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
check_box.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
check_button.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
check_button.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
code_edit.cpp Fix CodeEdit completion being very slow in certain cases 2023-09-21 15:44:36 +02:00
code_edit.h sort code completions with rules 2023-05-23 05:12:34 +02:00
color_mode.cpp Use cached saturation for color picker when value is 0 2023-06-21 15:18:20 -07:00
color_mode.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
color_picker.cpp Use cached saturation for color picker when value is 0 2023-06-21 15:18:20 -07:00
color_picker.h Use cached saturation for color picker when value is 0 2023-06-21 15:18:20 -07:00
color_rect.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
color_rect.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
container.cpp Merge pull request #78009 from YuriSizov/gui-gently-massage-minimal-size 2023-06-12 14:14:20 +02:00
container.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
control.cpp Fix global transform validity for `Node2D` and `Control` 2023-09-20 22:44:03 +02:00
control.h Expose Control::_get_drag_data() as non-const function 2023-05-24 06:09:45 +09:00
dialogs.cpp Hide/show AcceptDialog's button spacer on button visibility changed 2023-07-11 13:21:07 +02:00
dialogs.h Hide/show AcceptDialog's button spacer on button visibility changed 2023-07-11 13:21:07 +02:00
file_dialog.cpp Update FileDialog button activity when file_mode is changed. 2023-07-10 18:09:59 +02:00
file_dialog.h Defer invalidation on FileDialog nodes 2023-03-25 14:24:46 -03:00
flow_container.cpp Use BitField<> hint for ArrayFormat 2023-01-08 18:47:48 +01:00
flow_container.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
graph_edit.cpp [GraphEdit] Fix port hotzones at zoom levels other than 100% 2023-06-25 17:13:53 +02:00
graph_edit.h Add more uses of appropriate cursors when resizing/moving some UI nodes 2023-05-07 11:14:57 -03:00
graph_node.cpp Single Compilation Unit build. 2023-06-06 15:36:51 +01:00
graph_node.h Single Compilation Unit build. 2023-06-06 15:36:51 +01:00
grid_container.cpp Use BitField<> hint for ArrayFormat 2023-01-08 18:47:48 +01:00
grid_container.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
item_list.cpp Draw separators before selected style boxes 2023-09-21 14:57:13 +02:00
item_list.h Add `get_item_rect` function to `ItemList` 2023-05-11 19:01:54 +02:00
label.cpp [Label] Add support for tab stops. 2023-06-09 12:59:37 +03:00
label.h [Label] Add support for tab stops. 2023-06-09 12:59:37 +03:00
line_edit.cpp Preserve selection when focusing SpinBox 2023-06-10 21:29:24 +02:00
line_edit.h Preserve selection when focusing SpinBox 2023-06-10 21:29:24 +02:00
link_button.cpp AssetLib: Fix long plugin names breaking the UI 2023-10-24 18:17:02 +02:00
link_button.h AssetLib: Fix long plugin names breaking the UI 2023-10-24 18:17:02 +02:00
margin_container.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
margin_container.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
menu_bar.cpp Remove unused variable `PopupMenu::parent_rect` 2023-06-15 12:08:47 +02:00
menu_bar.h Removed unused property hints and `Object::get_translatable_strings()` 2023-01-09 16:56:01 +01:00
menu_button.cpp Fix position and size of MenuButton popup 2023-06-15 15:29:50 +02:00
menu_button.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
nine_patch_rect.cpp Make `NinePatchRect` listen to texture changes 2023-06-20 08:40:35 +02:00
nine_patch_rect.h Make `NinePatchRect` listen to texture changes 2023-06-20 08:40:35 +02:00
option_button.cpp Fix OptionButton min size when fit longest item is enabled 2023-10-19 21:45:12 +02:00
option_button.h Update size or size cache when toggling `expand_icon` in `Button` 2023-05-17 06:06:25 +08:00
panel.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
panel.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
panel_container.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
panel_container.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
popup.cpp Fix auto-reparenting logic in the `ProgressDialog` 2023-05-29 17:02:16 +02:00
popup.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
popup_menu.cpp Fix invalid minimum size for translated messages in option button 2023-07-10 17:46:08 +02:00
popup_menu.h Fix invalid minimum size for translated messages in option button 2023-07-10 17:46:08 +02:00
progress_bar.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
progress_bar.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
range.cpp Use NULL instead of COND checks when appropriate 2023-06-10 08:56:30 +02:00
range.h Merge pull request #70834 from pattlebass/spinbox-doesnt-spin 2023-04-12 17:01:11 +02:00
reference_rect.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
reference_rect.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
rich_text_effect.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
rich_text_effect.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
rich_text_label.cpp Fix various typos with codespell 2023-10-03 20:45:35 +02:00
rich_text_label.h [RTL] Fix multithreaded resizing. 2023-06-14 23:15:16 +03:00
scroll_bar.cpp Merge pull request #67910 from pkowal1982/scroll_bar 2023-03-08 14:06:30 +01:00
scroll_bar.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
scroll_container.cpp Expose horizontal/vertical custom_step as editor property for the ScrollContainer 2023-04-29 23:56:59 +02:00
scroll_container.h Expose horizontal/vertical custom_step as editor property for the ScrollContainer 2023-04-29 23:56:59 +02:00
separator.cpp Clean-up, harmonize, and improve StyleBox API 2023-01-19 20:02:21 +03:00
separator.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
slider.cpp Fix disabled slider highlighting 2023-07-10 18:09:58 +02:00
slider.h Merge pull request #63168 from Levrault/master 2023-06-05 18:04:39 +02:00
spin_box.cpp Preserve selection when focusing SpinBox 2023-06-10 21:29:24 +02:00
spin_box.h Merge pull request #70834 from pattlebass/spinbox-doesnt-spin 2023-04-12 17:01:11 +02:00
split_container.cpp Fix SplitContainer rendering and theming 2023-01-22 16:34:56 +01:00
split_container.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
subviewport_container.cpp Move call of `push_unhandled_input` from `Window` to `Viewport` 2023-03-17 19:22:24 +01:00
subviewport_container.h Move call of `push_unhandled_input` from `Window` to `Viewport` 2023-03-17 19:22:24 +01:00
tab_bar.cpp Make hovered tabs be drawn with the unselected's width at minimum 2023-09-27 17:48:41 +02:00
tab_bar.h Make hovered tabs be drawn with the unselected's width at minimum 2023-09-27 17:48:41 +02:00
tab_container.cpp Fix TabContainer's font_hovered_color theme property 2023-09-21 14:09:19 +02:00
tab_container.h Fix TabContainer's font_hovered_color theme property 2023-09-21 14:09:19 +02:00
text_edit.cpp [TextEdit] Expose all auto-wrap modes. 2023-06-13 10:28:27 +03:00
text_edit.h [TextEdit] Expose all auto-wrap modes. 2023-06-13 10:28:27 +03:00
texture_button.cpp Make `TextureButton` and `Button` update on texture change 2023-05-29 16:40:56 +02:00
texture_button.h Make `TextureButton` and `Button` update on texture change 2023-05-29 16:40:56 +02:00
texture_progress_bar.cpp TextureProgressBar Update upon texture changes 2023-04-01 00:16:43 +02:00
texture_progress_bar.h TextureProgressBar Update upon texture changes 2023-04-01 00:16:43 +02:00
texture_rect.cpp Add expand mode compat to TextureRect 2023-01-13 19:16:49 +01:00
texture_rect.h Add expand mode compat to TextureRect 2023-01-13 19:16:49 +01:00
tree.cpp Fix TreeItem range slider not working 2023-10-24 18:17:01 +02:00
tree.h GUI: Fix text overlapping icon in `Tree` 2023-09-20 22:13:23 +02:00
video_stream_player.cpp Use NULL instead of COND checks when appropriate 2023-06-10 08:56:30 +02:00
video_stream_player.h Updates VideoDecoder plugin API to GDExtension. 2023-01-30 18:39:29 -08:00
view_panner.cpp Fix the issue preventing dragging in the 2D and visual shader editor 2023-03-19 12:36:36 -07:00
view_panner.h Add gesture to ViewPanner and simplify a bit its API 2023-01-23 16:43:53 +01:00