+ int pad = (isType("group") || isType("frame")) ? 0 : 4;
+ // As comments above note, this was being set to 2. For some
+ // reason this causes the dialogs to shrink on subsequent pops
+ // so for now we'll make "dialog" padding 0.
+ if(isType("dialog")) pad = 0;