This is a migrated thread and some comments may be shown as answers.

Looks really bad when zooming

5 Answers 40 Views
ColorPicker
This is a migrated thread and some comments may be shown as answers.
Andreas
Top achievements
Rank 1
Andreas asked on 11 Mar 2016, 11:50 AM

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

5 Answers, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 15 Mar 2016, 02:27 PM
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.
0
Andreas
Top achievements
Rank 1
answered on 21 Mar 2016, 09:04 AM

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

0
Danail Vasilev
Telerik team
answered on 24 Mar 2016, 07:24 AM
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.
0
Andreas
Top achievements
Rank 1
answered on 28 Mar 2016, 06:38 PM
0
Danail Vasilev
Telerik team
answered on 30 Mar 2016, 10:55 AM
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.
Tags
ColorPicker
Asked by
Andreas
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
Andreas
Top achievements
Rank 1
Share this question
or