I’m currently migrating a project from V7 to V8 which worked fine until now except one strange behaviour of RichTextArea (lets call ist RTA now):
In my applliaction I have a window for composing a mail. The window uses a VerticalLayout containing some components for recipients, subject, body, … in it. For body a RTA is used which is not editable anymore and which doesn’t contain the text previously assigned.
After searching for a while I made a small v8 test application in which I also created a window with a RTA in it. Finally I was able to reproduce the problem. The RTA stops working if i set the layout to size full. If I remove the line
layout.setSizeFull();
below in testRtf method everything is fine. If the line is active RTA is not editable anmore.
[code]
private void testRtf() {
Window window = new Window(“Test RTF”);
window.setWidth(800, Unit.PIXELS);
window.setHeight(600, Unit.PIXELS);
final VerticalLayout layout = new VerticalLayout();
layout.setSizeFull();
window.setContent(layout);
Label header = new Label("header");
RichTextArea rtf = new RichTextArea();
rtf.setSizeFull();
Button close = new Button("close", e -> {
removeWindow(window);
});
layout.addComponents(header, rtf, close);
layout.setExpandRatio(rtf, 1f);
addWindow(window);
}
[/code]But I have to set layout to sizeFull to get the layout I want.
This only happens in FireFox (currently 56). I checked also Edge, Internext Explorer 11 and Chrome. In all of these browser I can set layout.setSizeFull() and the RTA still works fine.
Every hint to solve the problem would be great!
Thanks in advance
Ralph