Edges of decorated controls appear in different position

5 posts, 0 answers
  1. Adam
    Adam avatar
    12 posts
    Member since:
    Apr 2007

    Posted 01 Dec 2009 Link to this post

    On my webpage I have a div and in that div I have a button which is absolutely positioned in the center of the div.  The button is decorated correctly, but the right edge of the button appears in the upper left corner of the div.  There is a similar issue with the text box also.  The issue happens in IE8 regular as well as compatability mode.  In Firefox however everything is correct with no issue.
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 02 Dec 2009 Link to this post

    Hello Adam,

    I guess that you apply absolute positioning to the button itself with the style attribute, am I right? We do not check what the style actually is, because such check would decrease the performance of the control. That is why, in such scenario I would recommend to wrap the button in a SPAN and center the SPAN, not the button - this way your page will look as expected.


    Regards,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Adam
    Adam avatar
    12 posts
    Member since:
    Apr 2007

    Posted 02 Dec 2009 Link to this post

    Yes, I was using the style attribute.  I will try to use the SPAN, thanks for the suggestion.  One thing I do nto understand is when does if work in the Firefox browser and not in IE.
  5. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 03 Dec 2009 Link to this post

    Hi Adam,

    Actually Firefox acts as expected in such scenario, so I assume that the problem is in IE itself, however at this point I cannot tell for sure what exactly is causing the problem.

    All the best,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. Adam
    Adam avatar
    12 posts
    Member since:
    Apr 2007

    Posted 03 Dec 2009 Link to this post

    Thanks for you help.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017