Revision 7954536e
Added by Andreas Kohlbecker almost 7 years ago
src/main/java/eu/etaxonomy/vaadin/mvp/AbstractCdmPopupEditor.java | ||
---|---|---|
39 | 39 |
private Button advancedModeButton; |
40 | 40 |
|
41 | 41 |
/** |
42 |
* The supplied layout will be set to full size, to avoid problems with |
|
43 |
* automatic resizing of the inner content. |
|
44 |
* |
|
45 |
* |
|
42 | 46 |
* @param layout |
43 | 47 |
* @param dtoType |
44 | 48 |
*/ |
45 | 49 |
public AbstractCdmPopupEditor(Layout layout, Class<DTO> dtoType) { |
46 | 50 |
super(layout, dtoType); |
51 |
// IMPORTANT: the layout must be set to full size otherwise the |
|
52 |
// popup window may have problems with automatic resizing of its |
|
53 |
// content. |
|
54 |
layout.setSizeFull(); |
|
47 | 55 |
if(MarginHandler.class.isAssignableFrom(getFieldLayout().getClass())){ |
48 | 56 |
((MarginHandler)getFieldLayout()).setMargin(new MarginInfo(false, true, true, true)); |
49 | 57 |
} |
Also available in: Unified diff
fix #6843 popup window content layouts are guaranteed to have full size