Watermark shift issue

4 posts, 0 answers
  1. Roy Graham
    Roy Graham avatar
    4 posts
    Member since:
    Jul 2009

    Posted 13 Jan 2011 Link to this post

    Allowing the control to auto size, and using a watermark that is longer than the size of the empty control causes a slight shift in the view of the open control on second opening.
    (i.e. Open control, close it, open again without changing focus.)
    It appears that the watermark is re-displayed after the control is opened, and this causes the drop down part of the control to shift with the button.

    Is there anything that can be done about this easily, as our watermarks are coming from data, and so we cannot know the length of them?
  2. Kaloyan
    Kaloyan avatar
    920 posts

    Posted 14 Jan 2011 Link to this post

    Hi Roy Graham,

    Defining an explicit width(250 for instance) will prevent shifting the control itself.

    Kind regards,
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  3. Mike
    Mike avatar
    2 posts
    Member since:
    Apr 2011

    Posted 26 Apr 2011 Link to this post

    Is there a solution for scenarios where the watermark is determined by data, where a fixed width cannot be used?
    Many thanks,
  4. Pana
    Pana avatar
    748 posts

    Posted 29 Apr 2011 Link to this post

    Hello Graham,

    Use a MinWidth large enough to present the watermark text. Maybe we should set opacity = 0 instead of visibility = collapsed on the watermark so the control does not bounce back and forth when you focus / unfocus empty RadWatermarkTextBox. Yet the MinWidth is pretty good workaround.

    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top