Kodi Community Forum
Image Position and resizing window - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: Image Position and resizing window (/showthread.php?tid=132171)



Image Position and resizing window - kreggz - 2012-05-23

I am learning to skin and need some advice on positioning controls

Image

Image

when I change the window size the images move to the wrong positions.

If required I can post my code.


RE: Image Position and resizing window - Hitcher - 2012-05-23

Reload the skin and it'll correct itself.

See this thread for instructions on how to reload using the keymap.


RE: Image Position and resizing window - kreggz - 2012-05-24

Thanks, happy to try that however I notice I don't have this issue on the other XBMC skins do you know why?


RE: Image Position and resizing window - ronie - 2012-05-24

not sure if it applies to your code, but in case you used an aspectratio tag in your image controls,
that could certainly influence the way they appear when you resize the window.

http://wiki.xbmc.org/index.php?title=Aspect_Ratio


RE: Image Position and resizing window - Hitcher - 2012-05-24

Good catch ronie. Wink

Can I ask why you're changing window sizes?


RE: Image Position and resizing window - kreggz - 2012-05-25

Because the images move to the wrong position when i go into windowed mode.




RE: Image Position and resizing window - Hitcher - 2012-05-25

But why is your windowed mode a different aspect ratio than the fullscreen one?


RE: Image Position and resizing window - kreggz - 2012-05-26

Thanks ronie i'll try that as well.

Hitcher: When i go into window mode the images change position slightly. I exaggerated in the screen shot by changing the aspect ratio.


RE: Image Position and resizing window - Hitcher - 2012-05-26

I make sure my windowed mode is the same aspect ratio as the fullscreen mode but you always have to refresh the skin when change from one to the other.


RE: Image Position and resizing window - kreggz - 2012-05-26

thanks Hitcher, very good advice. Back to skinning!