resources/assets/js/editor.js
//Resize brother element of the resized element
Resize brother element of the resized element
Resize brother element of the resized element
function resizeBrother($parent,$resizedElement,$brother){
        var width=$resizedElement.width()+20;
        var parentWidth=$parent.width();
        var checkContainerwidth=parentWidth-width;
        $brother.width(parentWidth-width);
        if(checkContainerwidth<400){
            $brother.css('display','none');
        }
        else{
            $brother.css('display','inline-block');
        }
    }
function resizeBrother ( $parent , $resizedElement , $brother ) { var width = $resizedElement . width ( ) + 20 ; var parentWidth = $parent . width ( ) ; var checkContainerwidth = parentWidth - width ; $brother . width ( parentWidth - width ) ; if ( checkContainerwidth < 400 ) { $brother . css ( 'display' , 'none' ) ; } else { $brother . css ( 'display' , 'inline-block' ) ; } }
Resize brother element of the resized element
Resize brother element of the resized element