@@ -27,6 +27,8 @@ function resizablePanel(panel) {
27
27
let panelMaxWidth ;
28
28
let visibleByBreakpoint ;
29
29
30
+ const isPushingPanel = effect !== 'cover' && effect !== 'floating' ;
31
+
30
32
function transformCSSWidth ( v ) {
31
33
if ( ! v ) return null ;
32
34
if ( v . indexOf ( '%' ) >= 0 || v . indexOf ( 'vw' ) >= 0 ) {
@@ -60,13 +62,13 @@ function resizablePanel(panel) {
60
62
$el . transition ( 0 ) ;
61
63
$el . addClass ( 'panel-resizing' ) ;
62
64
$htmlEl . css ( 'cursor' , 'col-resize' ) ;
63
- if ( effect !== 'cover' || visibleByBreakpoint ) {
65
+ if ( isPushingPanel || visibleByBreakpoint ) {
64
66
$viewEl = $ ( panel . getViewEl ( ) ) ;
65
67
if ( panel . $containerEl && panel . $containerEl . hasClass ( 'page' ) ) {
66
68
$viewEl . add ( panel . $containerEl . children ( '.page-content, .tabs, .fab' ) ) ;
67
69
}
68
70
}
69
- if ( effect !== 'cover' && ! visibleByBreakpoint ) {
71
+ if ( isPushingPanel && ! visibleByBreakpoint ) {
70
72
$backdropEl . transition ( 0 ) ;
71
73
$viewEl . transition ( 0 ) ;
72
74
}
@@ -89,7 +91,7 @@ function resizablePanel(panel) {
89
91
90
92
panel . resizableWidth = newPanelWidth ;
91
93
$el [ 0 ] . style . width = `${ newPanelWidth } px` ;
92
- if ( effect !== 'cover' && ! visibleByBreakpoint ) {
94
+ if ( isPushingPanel && ! visibleByBreakpoint ) {
93
95
if ( $viewEl ) {
94
96
$viewEl . transform (
95
97
`translate3d(${ side === 'left' ? newPanelWidth : - newPanelWidth } px, 0, 0)` ,
@@ -119,14 +121,14 @@ function resizablePanel(panel) {
119
121
120
122
$htmlEl [ 0 ] . style . setProperty ( `--f7-panel-${ side } -width` , `${ panel . resizableWidth } px` ) ;
121
123
$el [ 0 ] . style . width = '' ;
122
- if ( effect !== 'cover' && ! visibleByBreakpoint ) {
124
+ if ( isPushingPanel && ! visibleByBreakpoint ) {
123
125
$viewEl . transform ( '' ) ;
124
126
$backdropEl . transform ( '' ) ;
125
127
}
126
128
$el . removeClass ( 'panel-resizing' ) ;
127
129
nextFrame ( ( ) => {
128
130
$el . transition ( '' ) ;
129
- if ( effect !== 'cover' ) {
131
+ if ( isPushingPanel ) {
130
132
$backdropEl . transition ( '' ) ;
131
133
if ( $viewEl ) $viewEl . transition ( '' ) ;
132
134
}
0 commit comments