mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Merge pull request #71330 from Geometror/richtextlabel-fit-content
[RichTextLabel] Match minimum size calculation of Label (proper content fitting)
This commit is contained in:
commit
fd66a86d72
6 changed files with 31 additions and 43 deletions
|
@ -567,7 +567,7 @@ ConnectDialog::~ConnectDialog() {
|
|||
// Originally copied and adapted from EditorProperty, try to keep style in sync.
|
||||
Control *ConnectionsDockTree::make_custom_tooltip(const String &p_text) const {
|
||||
EditorHelpBit *help_bit = memnew(EditorHelpBit);
|
||||
help_bit->get_rich_text()->set_fixed_size_to_width(360 * EDSCALE);
|
||||
help_bit->get_rich_text()->set_custom_minimum_size(Size2(360 * EDSCALE, 1));
|
||||
|
||||
// p_text is expected to be something like this:
|
||||
// "gui_input::(event: InputEvent)::<Signal description>"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue