-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(window) #713
feat(window) #713
Conversation
It will allow users to extend nebular classes and override something if needed.
</svg> | ||
`, | ||
styleUrls: ['./window-icon.component.scss'], | ||
host: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't use host
in Nebular, only @HostBinding
`, | ||
styleUrls: ['./window-icon.component.scss'], | ||
host: { | ||
'aria-label': 'expand', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't use host in Nebular, only @HostBinding
`, | ||
styleUrls: ['./window-icon.component.scss'], | ||
host: { | ||
'aria-label': 'close', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't use host in Nebular, only @HostBinding
`, | ||
styleUrls: ['./window-icon.component.scss'], | ||
host: { | ||
'aria-label': 'minimize', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't use host in Nebular, only @HostBinding
export class NbWindowRef { | ||
componentRef: ComponentRef<NbWindowComponent>; | ||
|
||
protected _prevState: NbWindowState; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no _
please
@@ -47,6 +50,13 @@ export class NbPlatform extends Platform { | |||
export class NbOverlayPositionBuilder extends OverlayPositionBuilder { | |||
} | |||
|
|||
@Injectable() | |||
export class NbBlockScrollStrategy extends BlockScrollStrategy { | |||
constructor(ruler: ViewportRuler, @Inject(NB_DOCUMENT) document) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets provide NbViewportRulerAdapter
here.
/** | ||
* Size of window. Large by default. | ||
*/ | ||
size: NbWindowSize = NbWindowSize.LARGE; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the user has to provide two sizes: one for the full-screen state and one for the max. Otherwise, as I understand correctly, in the maximized state window will be full-screen and will occupy the same amount of space but in the right bottom corner.
Please read and mark the following check list before creating a pull request:
Short description of what this resolves:
Closes #669