Skip to content

Commit 0fce39a

Browse files
authored
fix: [3937] Fixed FAB respect safe areas (#3950)
1 parent a935bef commit 0fce39a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CodenameOne/src/com/codename1/components/FloatingActionButton.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ public Container bindFabToContainer(Component cnt, int orientation, int valign)
304304
if(f != null && (f.getContentPane() == cnt || f == cnt)) {
305305
// special case for content pane installs the button directly on the content pane
306306
Container layers = f.getLayeredPane(getClass(), true);
307+
layers.setSafeArea(true);
307308
layers.setLayout(flow);
308309
layers.add(this);
309310
return null;

0 commit comments

Comments
 (0)