Login
Login
Register
MaterialUI Support
Questions
Unanswered
Ask a Question
Documentation
Home
Ask a Question
Is it possible to make the relative size of elements for different resolutions Screen Devices?
+1
vote
asked
Jun 6, 2016
in
Issue
by
ant0xa
(
160
points)
reshown
Jun 17, 2016
by
admin
I would like to know whether it is possible to specify the size of elements (such as a button or icon, or font size) are not in pixels, and in relative units (eg dp)?
Your comment on this question:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
1 Answer
0
votes
answered
Jun 17, 2016
by
admin
(
31,720
points)
selected
Aug 22, 2016
by
admin
Best answer
If you use the CanvasScaler component, then the 'pixel' values that you get and set in components act as dp, as they are all unscaled values :)
~ Declan.
Your comment on this answer:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Welcome to MaterialUI support! Ask us anything :)
All categories
Issue
(55)
Critical bug
(20)
Editor
(4)
Feature request
(13)
Help
(52)
...