cozy / cozy-home-v2

This repository was part of CozyV2 which has been deprecated
https://blog.cozycloud.cc/post/2016/11/21/On-the-road-to-Cozy-version-3
GNU Affero General Public License v3.0
94 stars 53 forks source link

Fix app-frames width on first app load #651

Open masda70 opened 8 years ago

masda70 commented 8 years ago

Since #473, when an app first loads, app-frames has a width of 300px (tested with Chrome/Firefox) caused in part by its absolute positioning. Adding width: 100% appears to fix the issue.

This can be problematic for apps whose initial state depends on the initial window width (such as a Map).

EDIT: The 300px width is the default iframe's width (http://stackoverflow.com/questions/5871668/default-width-height-of-an-iframe). Makes sense, since app iframe's manually set 100% width rule won't go past its parent due to its absolute position.

clochix commented 8 years ago

Thnaks for reporting @masda70 !