Changes between Initial Version and Version 1 of Ticket #4252


Ignore:
Timestamp:
Dec 13, 2016, 10:03:08 PM (7 years ago)
Author:
Vladislav Belov
Comment:

I think it's easy to make the CText/CInput to be autoresized, but there's the another problem: if the text width intersects with the input width, then we need to move and resize the input too. So, or we make it on JS part, which should be easy too, but it needs to repeat for any such case; or we make something like view (rowview, cellview, tableview) which autoaligns all elements by their sizes and size priorities.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4252 – Description

    initial v1  
    11The labels "To:" and "Text:" in the chat window are properly formatted in english, but some languages need more space than had been allocated when the strings and labels were introduced in r17771.
    2 
    32Just using the maximum size to fit all language yields ugly results in enlgish, see screenshot:
    4 
    53A better approach were to resize the label and text boxes dependent on the actual length.
    64There is `Engine.GetTextWidth()` that should be able to accomplish that.