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
0
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:
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
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
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
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
Ok.
Filed here:
http://feedback.telerik.com/Project/108/Feedback/Details/187346-zooming-breaks-the-colorpicker
Andreas
0
Hi Andreas,
Thank you!
I have updated your Telerik points respectively.
Regards,
Danail Vasilev
Telerik
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.