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 - Alignment of the subcomponents in Grid Panel doesn't showed in designtime
Summary: Alignment of the subcomponents in Grid Panel doesn't showed in designtime
Status: NEW
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: Matthew Bohm
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-02 19:39 UTC by bugbridge
Modified: 2009-05-25 21:07 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.