I started my own project a while ago and can't pass over one problem. I created my own top bar interface with action buttons, resizing and everything. While resizing the window everything i draw(in this window) is resizing too but i want everything to be its orginal size. For example the top bar height is 5/100 of the screen height that my app is displayed (for me it is 30px). If i resize the window the top bar is resizing too (for me it is 52px now). But if i print out the height of the top bar it's saying that the top bar height is 30px. How do i fix it. Do i need to change the view? Or scale everything?
I attach a video to make the whole problem clear because i know my english is not the best
Link to yt:
https://www.youtube.com/watch?v=3WinkG20Ueo&feature=youtu.be