panes icon indicating copy to clipboard operation
panes copied to clipboard

[BUG] Property 'calcFitHeight' does not exist on type 'CupertinoPane'

Open maudvd opened this issue 2 years ago • 2 comments

Describe the bug I updated cupertino-pane from 1.2.82 to 1.3.1 and I can't access the calcFitHeight method anymore. Has it been removed ?

Additional context I'm using this project in an Ionic 6 / Angular app.

maudvd avatar Aug 08 '22 10:08 maudvd

@modvd does this property on place fitHeight: true ?

Since 1.3.0, calcFitHeight() method assigned to instance under fitHeight module. It is required fitHeight, as you can see.

If you don't using fitHeight, than you must use await this.setBreakpoints(); which is public and accessible without modules.

roman-rr avatar Aug 08 '22 13:08 roman-rr

Yes my pane has fitHeight: true. Do I need to import something new since 1.3.0 ?

maudvd avatar Aug 08 '22 13:08 maudvd

@modvd thank you. Typos was not picked to main instance. Fixed in 1.3.12 and calcFitHeight method also.

roman-rr avatar Aug 12 '22 05:08 roman-rr