nebular: Window bugs on minimize/maximize

BUG

I’m submitting a …

  • bug report
  • feature request

Issue description

Current behavior: When i minimize Window, and click again to bring it to front, it loose the template. When i try to put it fullScreen, it place it to the bottom right position Expected behavior: Click on minimized window, bring it normaly with the template. Click on fullScreen, make the window full screen.

Steps to reproduce: See documentation, it’s bugged [window documentaiton] (https://akveo.github.io/nebular/docs/components/window/examples)

Related code:

import { Component } from '@angular/core';
import { NbWindowRef, NbWindowService } from '@nebular/theme';

@Component({
  template: `
    <form class="form">
      <label for="subject">Subject:</label>
      <input nbInput id="subject" type="text">

      <label class="text-label" for="text">Text:</label>
      <textarea nbInput id="text"></textarea>
    </form>
  `,
})
export class NbFormComponent {
  constructor(public windowRef: NbWindowRef) {}

  close() {
    this.windowRef.close();
  }
}

@Component({
  template: `<button (click)="openWindow()" nbButton>Open window</button>`,
  styleUrls: [ './window.scss' ],
})
export class NbWindowShowcaseComponent {

  constructor(private windowService: NbWindowService) {}

  openWindow() {
    this.windowService.open(NbFormComponent, { title: `Window` });
  }
}

Other information:

npm, node, OS, Browser

Node, npm: `v8.11.1` and `5.6.0`
OS: Windows (7/8/10).
Browser: Chrome

Angular, Nebular

angular: 7.0.0
nebular: 2.0.2

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 15 (1 by maintainers)

Most upvoted comments

@naingaungphyo @AmolSB I did a project for example using nebular starter kit to have running the nebular template and give you an idea how can work nbWindow with a angular service to keep the state saved. It is found in this repo https://github.com/carmeloNET/ngx-admin-nbWindow , just need run npm install and ng serve.