X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FGUI%2Flayout.cxx;h=b6fa5ab8f44926c56307f5056926fe72b65d2432;hb=c5366cceb6d345d3526ab013b04eb815fe0a6845;hp=aeec747c657ab9de237ba446572f3d924edde68c;hpb=aedc6f0614bf20170be35f899ac176666a87215e;p=flightgear.git diff --git a/src/GUI/layout.cxx b/src/GUI/layout.cxx index aeec747c6..b6fa5ab8f 100644 --- a/src/GUI/layout.cxx +++ b/src/GUI/layout.cxx @@ -1,5 +1,12 @@ + +#ifdef HAVE_CONFIG_H +# include +#endif + #include "layout.hxx" +#include + // This file contains the actual layout engine. It has no dependence // on outside libraries; see layout-props.cxx for the glue code. @@ -72,7 +79,8 @@ void LayoutWidget::calcPrefSize(int* w, int* h) *w = *h = 17*UNIT; if(getBool("vertical")) *w = 4*UNIT; else *h = 4*UNIT; - } else if (isType("list") || isType("airport-list") || isType("dial")) { + } else if (isType("list") || isType("airport-list") + || isType("property-list") || isType("dial") || isType("waypointlist")) { *w = *h = 12*UNIT; } else if (isType("hrule")) { *h = 1;