Reviewers: sbrubaker,
Description:
Adding a new DeckLayoutPanel that displays one of many widgets and
transitions between them using a horizontal or vertical sliding
animation. This is useful for mobile web apps that want to create a
slide effect between pages. Integrated DeckLayoutPanel into
TabLayoutPanel so both widgets can share the animated transitions. I
also replaced the TabPanel Showcase sample with a TabLayoutPanel sample
to show off the new feature.
This patch also fixes some subtle bugs in the general Layout code.
Calling forceLayout/animate(0) to layout immediately now cancels any
pending animation. Previously, the animation was only cancelled if a
new animation was started. In IE8, we only round pixels values. PCT
values are not rounded, which would lower the resolution of the layout.
In TabLayoutPanel, we now handle the case where a tab header is removed
via header.removeFromParent().
Please review this at http://gwt-code-reviews.appspot.com/1340803/show
Affected files:
M
samples/showcase/src/com/google/gwt/i18n/client/LocalizableResource.properties
M
samples/showcase/src/com/google/gwt/i18n/client/LocalizableResource_ar.properties
M
samples/showcase/src/com/google/gwt/i18n/client/LocalizableResource_fr.properties
M
samples/showcase/src/com/google/gwt/i18n/client/LocalizableResource_zh.properties
M
samples/showcase/src/com/google/gwt/sample/showcase/client/MainMenuTreeViewModel.java
M
samples/showcase/src/com/google/gwt/sample/showcase/client/ShowcaseConstants.java
A
samples/showcase/src/com/google/gwt/sample/showcase/client/content/panels/CwTabLayoutPanel.java
D
samples/showcase/src/com/google/gwt/sample/showcase/client/content/panels/CwTabPanel.java
M user/src/com/google/gwt/layout/client/Layout.java
M user/src/com/google/gwt/layout/client/LayoutImplIE8.java
A user/src/com/google/gwt/user/client/ui/DeckLayoutPanel.java
M user/src/com/google/gwt/user/client/ui/TabLayoutPanel.java
M user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome.css
M
user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome_rtl.css
M user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark.css
M user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark_rtl.css
M
user/src/com/google/gwt/user/theme/standard/public/gwt/standard/standard.css
M
user/src/com/google/gwt/user/theme/standard/public/gwt/standard/standard_rtl.css
M user/test/com/google/gwt/user/UISuite.java
A user/test/com/google/gwt/user/client/ui/DeckLayoutPanelTest.java
M user/test/com/google/gwt/user/client/ui/TabLayoutPanelTest.java
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors