caplin / FlexLayout

Docking Layout Manager for React
MIT License
938 stars 175 forks source link

Custom glass props on drag/drop #104

Open jackieleighh opened 4 years ago

jackieleighh commented 4 years ago

Could we tap into the following props?

this._glass = document.createElement("div"); this._glass.style.zIndex = "998"; this._glass.style.position = "absolute"; this._glass.style.backgroundColor = "white"; this._glass.style.opacity = ".00"; // may need to be .01 for IE??? this._glass.style.filter = "alpha(opacity=01)";

https://github.com/caplin/FlexLayout/blob/master/src/DragDrop.ts

jackieleighh commented 4 years ago

or at least have the ability to turn the glass on/off?

spider58 commented 4 years ago

or at least have the ability to turn the glass on/off?

hi, if you want to hide glass

in

style/dark.css style.light.css

find

.flexlayout__drag_rect {

class and change

display:flex with

display: none

AregShahbazian commented 1 year ago

The div that @jackieleighh is talking about is not the .flexlayout__drag_rect. Hiding the .flexlayout__drag_rect doesn't hide the glass. It's the div with z-index: 998, from DragDrop. It doesn't have a className.