# Render.get\_window\_width() vs. GUI width

**URL:** <https://forum.defold.com/t/render-get-window-width-vs-gui-width/47229>\
**Category:** Questions\
**Created:** [March 23, 2019, 11:15pm UTC](https://forum.defold.com/t/render-get-window-width-vs-gui-width/47229 "2019-03-23T23:15:44Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![totebo](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/totebo/32/36087_2.png) [@totebo](https://forum.defold.com/u/totebo)\
**Post date:** [March 25, 2019, 9:57am UTC](https://forum.defold.com/t/render-get-window-width-vs-gui-width/47229/14 "2019-03-25T09:57:19Z")

</div>

When I test, slice 9 objects are deformed, rather than retaining the corners nicely. How would I get them to stretch nicely when they’re stretched by Defold (rather than me setting the size manually)?

 ![01](https://forum-defold-uploads.b-cdn.net/original/2X/6/6c9841013ee4a18bc83ac4b38354b262745ff3e1.png)  
 ![09](https://forum-defold-uploads.b-cdn.net/original/2X/7/7d34badc520d86e31d54e1e937282fa3bc8cb2fb.png)  
 ![32](https://forum-defold-uploads.b-cdn.net/original/2X/b/b8b6ecec93edf87da4a68fddf0de4e0612d03556.png)

---

_[View the full topic](https://forum.defold.com/t/render-get-window-width-vs-gui-width/47229)._
