Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
0.14
-
None
Description
When a gadget is rendered without explicitly declaring content views (ie. canvas, home, default, profile, etc.) gadgets.requestNavigateTo(...) has some strange behaviors. The behaviors I have seen is that the gadget can request to be displayed in canvas view, but once canvas view has been rendered the gadget can not be taken out of canvas view.
The default behavior that I believe should happen when a gadget developer doesn't declare any content views is that the one content block that is defined should act as if it has been requested to be every view that the container supports. Also it might be important to mention that gadgets.views.getCurrentView() always returns the gadgets.views.ViewType for "profile" view even after the gadget is rendered as a canvas view.
The attached files demonstrate the above explained behaviors within a simple gadget that has links to toggle between the different gadget views and displays the currently reported ViewType.getName().