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
..
aspect_ratio_container.cpp
aspect_ratio_container.h
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
box_container.h
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
center_container.h
check_box.cpp
check_box.h
check_button.cpp
check_button.h
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
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
color_rect.h
container.cpp Merge pull request #78009 from YuriSizov/gui-gently-massage-minimal-size 2023-06-12 14:14:20 +02:00
container.h
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
flow_container.h
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
grid_container.h
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
margin_container.h
menu_bar.cpp Remove unused variable PopupMenu::parent_rect 2023-06-15 12:08:47 +02:00
menu_bar.h
menu_button.cpp Fix position and size of MenuButton popup 2023-06-15 15:29:50 +02:00
menu_button.h
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_container.cpp
panel_container.h
panel.cpp
panel.h
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
popup.cpp Fix auto-reparenting logic in the ProgressDialog 2023-05-29 17:02:16 +02:00
popup.h
progress_bar.cpp
progress_bar.h
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
reference_rect.h
rich_text_effect.cpp
rich_text_effect.h
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
scroll_bar.h
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
SCsub
separator.cpp
separator.h
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
split_container.h
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
texture_rect.h
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
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