You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The depth service in its current state is pretty useless, and can in fact be troublesome.
The base depth is set to 1000, which is a completely arbitrary value. Plus, everytime a directive registers itself on this service, the depth is incremented by 1. (ex: everytime the DatePicker or LxSelect dropdown is shown, the value get +1). This value is shared with every directives that use the service...
I would have thought the base value to be based on a parent element's depth (but it's hard to determine which one, if that's even possible), and to stay the same afterwards for a particular directive.
Wouldn't it be better to set the depths exclusively with css rules ? Or set the depth of the directives when they're instanciated ?
The text was updated successfully, but these errors were encountered:
The depth service in its current state is pretty useless, and can in fact be troublesome.
The base depth is set to 1000, which is a completely arbitrary value. Plus, everytime a directive registers itself on this service, the depth is incremented by 1. (ex: everytime the DatePicker or LxSelect dropdown is shown, the value get +1). This value is shared with every directives that use the service...
I would have thought the base value to be based on a parent element's depth (but it's hard to determine which one, if that's even possible), and to stay the same afterwards for a particular directive.
Wouldn't it be better to set the depths exclusively with css rules ? Or set the depth of the directives when they're instanciated ?
The text was updated successfully, but these errors were encountered: