File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
components/vc-resize-observer Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ const VueResizeObserver = defineComponent({
5858 handleResize ( entries ) {
5959 const { target } = entries [ 0 ] ;
6060 const { width, height } = target . getBoundingClientRect ( ) ;
61+ const { offsetWidth, offsetHeight } = target ;
6162 /**
6263 * Resize observer trigger when content size changed.
6364 * In most case we just care about element size,
@@ -67,7 +68,7 @@ const VueResizeObserver = defineComponent({
6768 const fixedHeight = Math . floor ( height ) ;
6869
6970 if ( this . width !== fixedWidth || this . height !== fixedHeight ) {
70- const size = { width : fixedWidth , height : fixedHeight } ;
71+ const size = { width : fixedWidth , height : fixedHeight , offsetWidth , offsetHeight } ;
7172 this . width = fixedWidth ;
7273 this . height = fixedHeight ;
7374 this . __emit ( 'resize' , size ) ;
You can’t perform that action at this time.
0 commit comments