Teach tab renamer to truncate tab title input (#8433)
If we try set a very long title, "rename box" UI changes max height, corrupting the layout. There are several ways to fix it, e.g. by limiting the MaxHeight (e.g. by binding it to the actual height of the title bar). However, I went for the most straightforward approach - truncating. I don't think we should allow long titles (though it can be a nice hidden storage 😊) I considered to truncate it to the tab header width, but we can actually see more data in tab-switcher, so I simply went for a hard-coded value which should be large enough. If this approach makes sense we need to consider updating the documentation. Closes #8428
This commit is contained in:
parent
ef98d300eb
commit
91aafe8da5
|
@ -25,6 +25,7 @@ the MIT License. See LICENSE in the project root for license information. -->
|
|||
MinHeight="0"
|
||||
Padding="4,0,4,0"
|
||||
Margin="0,-8,0,-8"
|
||||
MaxLength="1024"
|
||||
LostFocus="RenameBoxLostFocusHandler"/>
|
||||
</StackPanel>
|
||||
</UserControl>
|
||||
|
|
Loading…
Reference in a new issue