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
I'm passing a really large x and y value os.ui.window.launch() to try to launch a window in the lower right corner for a window with height: auto. When the following code runs, it doesn't work as expected because the height of the window hasn't been calculated yet so h is only 38px. Not sure if there is a good way around this...
if (y < winContainerTop) {
this.element.css('top', winContainerTop + 'px');
} else if ((y + h) > size.height) {
y = Math.max(size.height - h, winContainerTop);
this.element.css('top', y + 'px');
}
The text was updated successfully, but these errors were encountered:
You should be able to wait until you think your window is sized, then fire the $scope.$emit(os.ui.WindowEventType.READY) from your directive thats inside the window
I'm passing a really large x and y value
os.ui.window.launch()
to try to launch a window in the lower right corner for a window withheight: auto
. When the following code runs, it doesn't work as expected because the height of the window hasn't been calculated yet soh
is only 38px. Not sure if there is a good way around this...The text was updated successfully, but these errors were encountered: