# Window "Maximum Size" property

**URL:** <https://forum.inductiveautomation.com/t/window-maximum-size-property/7151>\
**Category:** Ignition\
**Created:** [August 27, 2013, 5:30am UTC](https://forum.inductiveautomation.com/t/window-maximum-size-property/7151 "2013-08-27T05:30:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pat.stave](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@pat.stave](https://forum.inductiveautomation.com/u/pat.stave)\
**Post date:** [August 27, 2013, 5:30am UTC](https://forum.inductiveautomation.com/t/window-maximum-size-property/7151/1 "2013-08-27T05:30:59Z")

</div>

I have a non-resizable docked window. I want to limit the maximum scaled size for aesthetic reasons.  
The property “Maximum Size” does not seem to have any effect, i guess this is intented for resizing and not scaling.

The window is drawn in 1024x768, and that is my intended maximum scaled size.

Can this be done?

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [August 29, 2013, 3:49pm UTC](https://forum.inductiveautomation.com/t/window-maximum-size-property/7151/2 "2013-08-29T15:49:42Z")

</div>

It’s a docked window, so you’re talking about the scaling that happens when the entire client window is resized?

So you want it to scale downwards, but not upwards beyond a certain width or height? I can’t think of a way to do this…

---

<div class="post-metadata">

**Author:** ![pat.stave](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@pat.stave](https://forum.inductiveautomation.com/u/pat.stave)\
**Post date:** [August 30, 2013, 4:35am UTC](https://forum.inductiveautomation.com/t/window-maximum-size-property/7151/3 "2013-08-30T04:35:09Z")

</div>

Yes, this is what i’m trying to achieve. The problem is that the window is used both on laptops (1200x768) and desktops (1920x1080 / 1920x1200). The display on the desktop view looks weird, with huge analog indicators and value fields.

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [August 30, 2013, 4:25pm UTC](https://forum.inductiveautomation.com/t/window-maximum-size-property/7151/4 "2013-08-30T16:25:41Z")

</div>

Maybe you should design the contents at a fixed size (anchored top-left layout) inside a sub-container that is centered.

---

<div class="post-metadata">

**Author:** ![Pat](https://avatars.discourse-cdn.com/v4/letter/p/8491ac/32.png) [@Pat](https://forum.inductiveautomation.com/u/Pat)\
**Post date:** [August 30, 2013, 5:31pm UTC](https://forum.inductiveautomation.com/t/window-maximum-size-property/7151/5 "2013-08-30T17:31:42Z")

</div>

I design my project screens for the least common denominator. My projects often have a mix of square and wide monitors. I have a project that is run on 1280x1024 and 1600x900 resolutions. I set my project windows to be 1260x830 (it’s slightly small than the least common denominator to account for scroll bars and Windows Task Bar). Most of my components layouts are set to Relative, Maintain Aspect Ratio, Scale Font OFF. Tables are mostly set to Relative, Maintain Aspect Ratio OFF, Scale Font OFF. When I have to have things line up precisely, I do as Carl recommended, place a container on the window and place all my components in that container and set the container to Anchor Top/Center.

---

<div class="post-metadata">

**Author:** ![pat.stave](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@pat.stave](https://forum.inductiveautomation.com/u/pat.stave)\
**Post date:** [October 3, 2013, 5:34am UTC](https://forum.inductiveautomation.com/t/window-maximum-size-property/7151/6 "2013-10-03T05:34:44Z")

</div>

I added all content to another container, and set the layout option on this container to be anchored and centered (as suggested by carl). This acheived what i wanted.
