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 121232 - Page Fragment background color leaks outside bounds of the fragment
Summary: Page Fragment background color leaks outside bounds of the fragment
Status: NEW
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Peter Zavadsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-05 23:06 UTC by Winston Prakash
Modified: 2007-11-06 01:47 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Winston Prakash 2007-11-05 23:06:50 UTC
Setting the background of the page fragment covers the entire design page, 
not just the highlighted page fragment area.

- Create a page fragment
- Select the <div> in the outline
- Select the Style property and bring up the style builder
- Go to background and select the color orange.

Note that entire page is Orange. What we expect is only the highlighted area
corresponding the the <div> width and height to be in Orange in color.

Also note that when you set the border of the fragment, the border set is along the
the design surface, not the Page Fragement <div>.
Comment 1 Peter Zavadsky 2007-11-06 00:00:35 UTC
I need to check that, it all depends on which element is considered to be the 'body' one, since, the one is used to show
in the designer.
Comment 2 Peter Zavadsky 2007-11-06 00:35:08 UTC
It seems it is about the size of the page box (the top box).
Comment 3 Peter Zavadsky 2007-11-06 01:17:54 UTC
And it seems, it was designer that way.
Comment 4 Peter Zavadsky 2007-11-06 01:18:24 UTC
I meant, it was designed.
Comment 5 _ krystyna 2007-11-06 01:47:22 UTC
This has always worked this way as the div is really not a component and does default to the body background.

Tor talked about this in forum,blogs.

A workaround is that you can set a desired style class to change the background color of a page fragment. It works.