tiberiuzuld / angular-gridster2

Angular gridster 2
https://tiberiuzuld.github.io/angular-gridster2
MIT License
1.28k stars 376 forks source link

Content wrapping in gridster item #503

Open SamithaS opened 5 years ago

SamithaS commented 5 years ago

I am using <ng-container *ngComponentOutlet="item.widgetComponent"> for add components to gridster items. The problem is if the widget component size is grater than the actual gridster item then scrolling is not supported. Part of the widget is missing, any idea to overcome this issue?

GuppuBoss commented 5 years ago

@SamithaS I am also facing the same issue. gridster-item height is less than the dropped widget. Did you found any workaround? I am using ng-dynamic-component though

SamithaS commented 5 years ago

This can be handled through css.

ieliibrahim commented 4 years ago

Hi @SamithaS Can you please tell me how did you manage to use item.widgetComponent to add the component? I am using this code to add dynamic components(Charts): <gridster-item ngFor="let item of layout" [item]="item" class="gs-w"> <ng-container ngComponentOutlet="item"> But the issue is that: 1- I add a Pie Chart 2- I add another line chart to the same gridster 3- All the charts becomes from the same type - all line charts or all pie charts.

I cannot control which type should be added