Skip to content
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

Merged
merged 33 commits into from
Sep 17, 2018
Merged

feat(window) #713

merged 33 commits into from
Sep 17, 2018

Conversation

yggg
Copy link
Contributor

@yggg yggg commented Sep 13, 2018

Please read and mark the following check list before creating a pull request:

Short description of what this resolves:

Closes #669

</svg>
`,
styleUrls: ['./window-icon.component.scss'],
host: {
Copy link
Collaborator

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',
Copy link
Collaborator

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',
Copy link
Collaborator

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',
Copy link
Collaborator

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;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no _ please

@yggg yggg requested a review from Tibing September 14, 2018 10:16
@@ -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) {
Copy link
Member

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;
Copy link
Member

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.

@yggg yggg added the WIP label Sep 14, 2018
@nnixaa nnixaa merged commit 60a65cb into akveo:master Sep 17, 2018
@nnixaa nnixaa removed the WIP label Sep 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New component - Collapsable Window
3 participants