It seems we have width+height specifically defined for each window.popup across the code base. These are some of the variants I could find, but there may be others: width=1000,height=600 width=1000,height=375 width=1000,height=575 width=900,height=700 width=800,height=400 width=800,height=550 width=800,height=500 width=700,height=700 width=700,height=600 width=700,height=400 width=700,height=550 This is not great, these should be standardized and configured once, example (values to be discussed): large: 1000 x 600 medium: 800 x 500 small: 700 x 400
Maybe only large and small in enough. Looks like small popups use around 4/3 ratio. So small could be width=800,height=600 Large use a more 16/9 ratio. So large could be width=1024,height=576 Actual width=800 and width=700 goes to small. Actual width=900 may fit in small, must be validated. Actual width=1000 goes to large.
I'd love to see the approach in bug 35134 extended to here.. I think three sizes of popup make sense and having those three sizes user customisable using the approach in bug 35134 would be even better... I also like that instead of a hard coded default, the default introduced in 35134 is calculated from the window size to start.