googlearchive / core-pages

Simple content switcher
7 stars 6 forks source link

Use 'display' instead of 'visibility' to hide pages #11

Open hesamrabeti opened 10 years ago

hesamrabeti commented 10 years ago

When using a core-pages element in a SPA to show different tabs, the size of the core-pages element is determined by the largest child page, even if said largest page is not currently selected. Using the 'display' property instead of 'visibility' to hide elements alleviates this problem.