This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 94038

Summary: Alignment of the subcomponents in Grid Panel doesn't showed in designtime
Product: obsolete Reporter: bugbridge <bugbridge>
Component: visualwebAssignee: Matthew Bohm <mbohm>
Status: NEW ---    
Severity: blocker CC: alexeybutenko
Priority: P4    
Version: 5.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description bugbridge 2007-02-02 19:39:21 UTC
Description:
Reproducible wih FCS

Steps:
 - Create Project
 - Add some panel component(Grid, Group or Layout)
 - clear its style property
 - Open stylesheet.css file and add new style class or copy this:
    .panelSize {
      background-color : aqua;
      top:0px;
      left :0px ;
      width : 500px ;
      height : 600px ;
      position: absolute;
    }
 - Switch to designer and set styleClass property of the panel component to
   this created class

Result: only color will be changed

Description (Entry 2):
Reproducible using FCS

Steps:

 - Add Grid Panel to Designer
 - Add 2 hyperlinks to Grid Panel
 - add "text-align: center;" to style property of the Grid Panel

Result: alignment of the components will be affected only in runtime or in
preview mode

Workaround:
still it could be setted via style property
Comment 1 Peter Zavadsky 2007-05-21 14:16:02 UTC
The renderer simply ignores the style property set, and its output is like this
 (for grid panel) for the above case:

Rendered markup design
bean=org.netbeans.modules.visualweb.insync.live.FacesDesignBean@311843[instanceName=gridPanel1,
instance=javax.faces.component.html.HtmlPanelGrid@15f73d4]
<?xml version="1.0"?>
<table class="rave-design-border" id="form1:gridPanel1" style="; width: 96px;
height: 96px;">
    <tbody/>
</table>

Passing back to components.