Fixed chat width breaking when video hidden.
This commit is contained in:
parent
441108c9cb
commit
4c54c270d2
3 changed files with 43 additions and 8 deletions
|
|
@ -483,6 +483,9 @@ class canopyUXUtils{
|
|||
//Whether or not click dragger is in a flexbox
|
||||
this.flex = flex;
|
||||
|
||||
//Create boolean to allow parent classes to suspend click dragging behavior
|
||||
this.enabled = true;
|
||||
|
||||
//Setup our event listeners
|
||||
this.setupInput();
|
||||
}
|
||||
|
|
@ -514,7 +517,7 @@ class canopyUXUtils{
|
|||
}
|
||||
|
||||
drag(event){
|
||||
if(this.dragLock){
|
||||
if(this.dragLock && this.enabled){
|
||||
if(this.leftHandle){
|
||||
//get difference between mouse and right edge of element
|
||||
var difference = this.element.getBoundingClientRect().right - event.clientX;
|
||||
|
|
@ -558,6 +561,12 @@ class canopyUXUtils{
|
|||
|
||||
|
||||
fixCutoff(standalone = true, pageBreak){
|
||||
//If the click dragger isn't enable
|
||||
if(!this.enabled){
|
||||
//FUCK OFF AND DIE
|
||||
return;
|
||||
}
|
||||
|
||||
//If we have no pagebreak
|
||||
if(pageBreak == null){
|
||||
//If we have a document body
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue