How can I change the position of the growl-container?
The container id is "gritter-notice-wrapper" ... allways?
Where can I change the default css?
regards
Andreas
http://www.ahoehma.de
Change position of p:growl
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
I think that should be a style class instead of a fixed id. I think we need to improve the skinning of growl.
For now you can do;
For example this places growl to the top left corner. Again, this will be improved to use style classes instead soon.
For now you can do;
Code: Select all
<style type="text/css">
#gritter-notice-wrapper {
top:20px;
left:20px;
}
</style>
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
You can monitor to changes by subscribing(voting);
http://code.google.com/p/primefaces/iss ... ail?id=316
http://code.google.com/p/primefaces/iss ... ail?id=316
I need to locate growl in right and middle position
I use id but its position don't changed and is on the top left
how can I fix this problem?
I use primefaces 3.0M1
I use id but its position don't changed and is on the top left
Code: Select all
<h:head>
<title>Facelet Title</title>
<style type="text/css">
#growl {
padding-left: 20px;
padding-top: 20px;
}
</style>
</h:head>
<h:body>
<p:growl id="growl" showDetail="true" sticky="true" />
<h:form id="test">
<p:panel header="Growl">
<h:panelGrid columns="2">
<h:outputText value="Your Name: * " />
<p:inputText value="#{growl.test}" required="true" label="name" />
</h:panelGrid>
<p:commandButton value="Save" actionListener="#{growl.save}" update="growl" />
</p:panel>
</h:form>
</h:body>
I use primefaces 3.0M1
You need to set the left/right and top/bottom properties, not padding.
.ui-growl {
right: 20px;
top: 50%;
}
would set all growl components at the right side and start halfway down the page. True vertical centralizing is abit harder.
.ui-growl {
right: 20px;
top: 50%;
}
would set all growl components at the right side and start halfway down the page. True vertical centralizing is abit harder.
Using PF 3.0 with default JSF implementation of JBoss 6
-
- Information
-
Who is online
Users browsing this forum: No registered users and 40 guests