Looks really bad when zooming

6 posts, 0 answers
  1. Andreas
    Andreas avatar
    137 posts
    Member since:
    May 2008

    Posted 11 Mar Link to this post

    Hi,

    The color picker doesn't looks good when zooming in the browser.

    Try zooming to 120% and run your demo:

    http://demos.telerik.com/aspnet-ajax/colorpicker/examples/overview/defaultcs.aspx

    You need to reload the page after zooming!

    The Web colors wraps, and the HSB/HSV tabs also wraps a lot!

    Regards
    Andreas

  2. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1490 posts

    Posted 15 Mar Link to this post

    Hi Andreas,

    This issue is caused due to the getComputedStyle() method that is utilized by the RadColorPicker in Lightweight render mode. The method returns different values in Chrome/FireFox when the page is zoomed. This can be easily tested on a page that contains no Telerik UI controls. For example:
    <script>
        function getCompStyle() {
            alert($telerik.$("#div1")[0].ownerDocument.defaultView.getComputedStyle($telerik.$("#div1")[0])["borderTopWidth"]);
        }
    </script>
    <input type="button" value="getComputedStyle" onclick="getCompStyle(); return false;" />
    <div id="div1" style="width: 100px; height: 100px; border: 1px solid green;box-sizing:border-box;">
    </div>

    What I can suggest is that instead of zooming the page you set a larger font-size of the RadColorPicker. More information is available in the Elastic Design help article.

    Regards,
    Danail Vasilev
    Telerik
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Andreas
    Andreas avatar
    137 posts
    Member since:
    May 2008

    Posted 21 Mar in reply to Danail Vasilev Link to this post

    Hi,

    Well that is not up to me, we already have a font-size that we think is ok, but some of our end users are still using zoom!

    So this is out of our control and I think this should be fixed in the ColorPicker control!

    Regards
    Andreas

  5. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1490 posts

    Posted 24 Mar Link to this post

    Hello Andreas,

    What I can suggest is that you log this as an issue in our feedback portal - http://feedback.telerik.com/Project/108. If you provide link back to us in this forum we will be glad to award you with Telerik points for the efforts.

    Regards,
    Danail Vasilev
    Telerik
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  6. Andreas
    Andreas avatar
    137 posts
    Member since:
    May 2008
  7. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1490 posts

    Posted 30 Mar Link to this post

    Hi Andreas,

    Thank you!

    I have updated your Telerik points respectively.

    Regards,
    Danail Vasilev
    Telerik
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017