Bug 498

Summary: [Chameleon]Visible parameter for popup widget doesn't control visibility
Product: Chameleon Reporter: Normand Savard <nsavard@mapgears.com>
Component: WidgetAssignee: chameleon-dev <chameleon-dev@lists.maptools.org>
Status: CLOSED FIXED    
Severity: normal    
Priority: P2    
Version: 1.99   
Target Milestone: 1.99 beta 3   
Hardware: PC   
OS: Linux   
Whiteboard:

Description From 2004-07-05 15:51:38
Visible attribute set to "false" for pop up widgets as "LegendTemplate",
"MapSize", "PrintWidget", and so on does not set display of these widgets to off.

I used the "sample_enhanced.phtml" sample.  I modified the "tools_enhanced.html"
template for the "MapSize" widget (see below).  

Expected result:

"MapSize" button should not appear.

Fedora Core 1
Mozilla 1.6
Chameleon 20040625
---------------------
MapSize widget modified:

      <!-- MAPSIZE -->
      <td><cwc2 type="MapSize" styleresource="TextButtons"
popupresource="TextButtons" Embedded="false" PopupWidth="480" PopupHeight="240"
Toolbar="false" Status="false" Menubar="false"  Visible="false"
Image="icons/icon_mapsize.png" ImageTip="Set Map Size" Label="Map Size">
        <mapsize label="small" width="400" height="300"/>
        <mapsize label="medium" width="600" height="450"/>
        <mapsize label="large" width="800" height="600"/>
        <mapsize label="custom ..." width="custom" height="custom"/>
        <image state="normal"/>
        <image state="selected"/>
        <image state="hover"/>
      </CWC2>
------- Comment #1 From 2004-07-08 13:22:04 -------
Changed target to 1.99 Beta 3.
------- Comment #2 From 2004-10-07 10:11:22 -------
this was fixed by enforcing the calling of InitDefaults in the parent class
(CWCWidget) as part of fixing bug 93.
------- Comment #3 From 2004-10-25 17:24:18 -------
verified on windows using beta 3 20041022, by changing MapSize visible from
"true" to "false" and back again. 

set bug to verified.
------- Comment #4 From 2004-10-27 13:32:04 -------
Verified on Fedora Core 2.