How to center items horizontally in a tile layout?
Hello.
say i have a bordercontainer with a group with a tilelayout in it:
<s:BorderContainer width="600" borderColor="0x000000">
<s:layout> <s:HorizontalLayout horizontalAlign="center" /> </s:layout>
<s:Group width="90%">
<s:layout> <s:TileLayout/> </s:layout>
<s:Button/>
<s:Button/>
<s:Button/>
</s:Group>
</s:BorderContainer>
The three buttons sit in the left corner of the group. Any ideas on how I could center the three buttons horizontally?
no issue,
<s:Group width="90%">
<s:layout> <s:TileLayout paddingLeft="100" paddingRight="100" horizontalAlign="center"/> </s:layout>
<s:Button/>
probably this will work, change padding and group width to get expected result.
Similar Messages
-
How to center components horizontally in container with SpringLayout layout
Hello,
I've got a button and a text field in container with SpringLayout layout set. How can I center text field horizontally (buttong is the highest component)?
I don't want use hacks like settings all heights manually.
With regards,
Pavel KrupetsSorry vertically!!!
-
Center a horizontal UL on the page
Hello,
Here's the situation:
I've got a dynamic width page (100% wide) layout.
I created a horizontal menu using CSS on an unordered list
< UL >. The List items are set to float: left. Is there a way
to get the UL to be centered on the page?
If the width of the UL were fixed, I would simply set the
margins to auto, but I can't figure out how to do this on a 100%
width layout. It always comes out left aligned.
Free virtual hugs to anyone who has a solution!
JonnyMurray,
It works fine, check out this link, I've tested it for you
Vertical Menu Test ..
Dev_all
quote:
Originally posted by:
Newsgroup User
I am skeptical.
> margin: 1em 0;
> padding: 0px 0.5em;
These two elements are going to blow your plan to
smithereens.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"dev_all" <[email protected]> wrote in
message
news:efeohg$37r$[email protected]..
>
quote:
Originally posted by:
Jonny M
> Ignore that non-breaking space. I just had it there to
prevent wrapping.
>
> Each
is floated left so that it is a horizontal menu and not a
> vertical
> one.
>
> o okay, i didnt read it right.. .but try this:
>
> you will have to change the style according to your
preference but this
> should
> create a vertical menu with evenly spaced, and centered
links.
>
> #footerNav {
> width: 99%;
> > background: #WHATEVER none;
> }
>
> #footerNav ul {
> margin: 0;
> padding: 0;
> list-style: none;
> }
>
> #footerNav li {
> margin: 0;
> padding: 0;
> float: left;
> width: 24%;
> /* This will evenly space your links. Obviously 24% is
for four links, if
> you
> have five links change it to 19% etc.. */
> text-align: center;
> -
How to center in a Scene?
I'm liking the layouts, but I haven't figured out how to center something in a Scene. It doesn't take LayoutInfo, for example.
What's a good way to center a Component (a VBox in this case) in a Scene?
Thanks,
DaveYou can do it the good old way:
def IMAGES_WIDTH = 100;
def IMAGES_HEIGHT = 100;
var COLUMN_NB = 3;
var ROW_NB = 3;
var scene: Scene;
var previews: Container;
Stage
title: "Test of Tile layout"
scene: scene = Scene
width: 500
height: 500
fill: Color.LAVENDER
content:
previews = Tile
hgap: 10
vgap: 10
layoutX: bind (scene.width - previews.width) / 2
layoutY: bind (scene.height - previews.height) / 2
columns: COLUMN_NB
content: for (i in [ 1 .. COLUMN_NB * ROW_NB ])
ImageView
image: Image
url: "{__DIR__}clock.gif"
width: IMAGES_WIDTH
preserveRatio: true
} -
How to center menu and add spacing between buttons?
Here is my site: http://lauraportfolio.hostoi.com/index.html (If you are using Google Chrome you can right click and select "view page source" to see the html of the page)
See how the menu button are justified the left of the light pink menu bar? How can I put them in the center?
I would like to know how to center the menu, and then add spacing between the buttons.
At one point I added spacing between the buttons using CSS padding, but when I did that the last menu button, "Graphics" ran off the pink menu bar and became invisible and all kinds of crazy ugly stuff!
Below is what I beleive to be all of the CSS styling for the menu:
#menubar
width: 900px;
height: 72px;
padding: 0;
background-color: transparent;
background-image: url(transparentpink.png);
background-repeat: repeat;
ul#menu, ul#menu li
{ float: left;
margin: 0;
padding: 0;}
ul#menu li
list-style: none;
padding-right: 0px;
padding-left: 0px;
margin-right: auto;
margin-left: auto;
ul#menu li a
letter-spacing: 0.1em;
display: block;
float: left;
height: 37px;
text-align: center;
color: #f0dbca;
text-transform: none;
text-decoration: none;
background: transparent;
font-family: bonvenoCF, verdana, Geneva, sans-serif;
font-size: 150%;
font-style: normal;
font-weight: normal;
font-variant: normal;
padding-top: 29px;
padding-right: 26px;
padding-bottom: 6px;
padding-left: 26px;
ul#menu li a:hover, ul#menu li.selected a, ul#menu li.selected a:hover
color: #F0DBCA;
background-color: #F1836A;PART 1
So as long as the width of the buttons plus the padding doesn't go over 900px it won't run off the page?
Right. The "box model" in CSS works like this:
width + padding + border = actual visible/rendered width of box
height + padding + border = actual visible/rendered height of box.
PART 2
And do you know how I can center the whole thin instead of it being left-aligned on the menu bar?
You can't center floated menu items. The best you can do is make your menu fit the entire width of the container (or as close as you can) as described in PART 1 above.
To center your #menu container, use margin:0 auto;
To center text, use text-align:center on the #menu li a.
Nancy O. -
How to center things in Flash?
How do I center objects (horizontally and/or vertically) in
Flash?
If I copy an object, create a new document, and paste it in
this new document, it automatically appears in the center. But is
there any way to do this with objects in an existing document?
Otherwise I have to spend a lot of time measuring the distance of
space on my left and right sides, say I want to center something
horizontally. There must be a better way?
Thank you!kyrreny wrote:
> How do I center objects (horizontally and/or vertically)
in Flash?
>
> If I copy an object, create a new document, and paste it
in this new document,
> it automatically appears in the center. But is there any
way to do this with
> objects in an existing document? Otherwise I have to
spend a lot of time
> measuring the distance of space on my left and right
sides, say I want to
> center something horizontally. There must be a better
way?
CTRL V always paste in center within the same document. Tho
might not
across multiple documents.
Then there is Alignment:
CTRL K open positions and alignment panel, where you can
control the content.
Just hover with your mouse over the buttons and you will get
description of
each of them.
Best Regards
Urami
"Never play Leap-Frog with a Unicorn."
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami> -
Tile layout container: aligning content horizontally
Hi,
I am using a Tile layout container to show a few Panels (all
have the same dimensions). I have set the Width of the Tile
container (to 100%) and want to have the children centered
horizontally. In my experimentation I have found that the
.horizontalAlign property has no effect when the width of the Tile
container is set.
Is there a good way to tile controls across a horizontal
space, always centering them, and adjusting the number of items
displayed on a single row to use the maximum horizontal space (i.e.
I don't think the Grid layout container is a good candidate)?
JoubertHi,
I am using a Tile layout container to show a few Panels (all
have the same dimensions). I have set the Width of the Tile
container (to 100%) and want to have the children centered
horizontally. In my experimentation I have found that the
.horizontalAlign property has no effect when the width of the Tile
container is set.
Is there a good way to tile controls across a horizontal
space, always centering them, and adjusting the number of items
displayed on a single row to use the maximum horizontal space (i.e.
I don't think the Grid layout container is a good candidate)?
Joubert -
How to get items from a list that has more items than the List View Threshold?
I'm using SharePoints object model and I'm trying to get all or a subset of the items from a SharePoint 2010 list which has many more items than the list view threshold (20,000+) using the SPList.GetItems() method. However no matter what I do the SPQueryThrottledException
always seems to be thrown and I get no items back.
I'm sorting based on the ID field, so it is indexed. I've tried setting the RowLimit property on the SPQuery object(had no effect). I tried specifying the RowLimit in the SPQuerys ViewXml property, but that still throws a throttle exception. I tried using the
ContentIterator as defined here:http://msdn.microsoft.com/en-us/library/microsoft.office.server.utilities.contentiterator.aspx,
but that still throws the query throttle exception. I tried specifying the RowLimit parameter in the ProcessListItems functions, as suggested by the first comment here:http://tomvangaever.be/blogv2/2011/05/contentiterator-very-large-lists/,
but it still throws the query throttle exception. I tried using GetDataTable instead, still throws query throttle exception. I can't run this as admin, I can't raise the threshold limit, I can't raise the threshold limit temporarily, I can't override the lists
throttling(i.e. list.EnableThrottling = false;), and I can't override the SPQuery(query.QueryThrottleMode = SPQueryThrottleOption.Override;). Does anyone know how to get items back in this situation or has anyone succesfully beaten the query throttle exception?
Thanks.
My Query:
<OrderBy>
<FieldRef Name='ID' Ascending='TRUE' />
</OrderBy>
<Where>
<Geq><FieldRef Name='ID' /><Value Type='Counter'>0</Value></Geq>
</Where>
My ViewXml:
<View>
<Query>
<OrderBy><FieldRef Name='ID' Ascending='TRUE' /></OrderBy>
<Where>
<Geq><FieldRef Name='ID' /><Value Type='Counter'>0</Value></Geq>
</Where>
</Query>
<RowLimit>2000</RowLimit>
</View>
Thanks again.I was using code below to work with 700000+ items in the list.
SPWeb oWebsite = SPContext.Current.Web;
SPList oList = oWebsite.Lists["MyList"];
SPQuery oQuery = new SPQuery();
oQuery.RowLimit = 2000;
int intIndex = 1;
do
SPListItemCollection collListItems = oList.GetItems(oQuery);
foreach (SPListItem oListItem in collListItems)
//do something oListItem["Title"].ToString()
oQuery.ListItemCollectionPosition = collListItems.ListItemCollectionPosition;
intIndex++;
} while (oQuery.ListItemCollectionPosition != null);
Oleg
Hi Oleg, thanks for replying.
The problem with the code you have is that your SPQuery object's QueryThrottleMode is set to default. If you run that code as a local admin no throttle limits will be applied, but if you're not admin you will still have the normal throttle limits. In my
situation it won't be run as a local admin so the code you provided won't work. You can simulate my dilemma by setting the QuerryThrottleMode property to SPQueryThrottleOption.Strict, and I'm sure you'll start to get SPQueryThrottledException's
as well on that list of 700000+ items.
Thanks anyway though -
How to Inactive Item Status at Org Level
How to Inactive Item Status at Org Level and what are the implications of doing so.
What are the prerequisits before inactivating an item status.
The Procedure I am following is
Changing the Item Attribute control to Org Level for Item Status
Log on to Organization Items and Selecting the Item Status as Inactive.
Can any one please let me know what are the pre requisits before Inactivating an Items and The procedure I am following is correct.
Thanks
Srinivasa GarikipatiHi;
Please check serial attribute and org attribute problems with item master and see its helpful
Also you can check:
http://oz1-n.blogspot.com/2009/06/interview-questions-for-oracle-11i-apps.html part
1. Once an item is assigned to an organization, is it possible to remove this association at a later time?
2. How do I inactivate an item?
Regard
Helios -
MM: Purchase requisition line Items - How many line items can we use
Hi all,
1. Purchase requisition Line items (How many line items can we use?), is there any restrictions.
2. While creating PO with only one tax code for the related PR to input Tax code (without selecting line Items).
Regards,
SudheerHi
There is no limitation for number of items in PR.
Tax code is always applicable for individual item only.It cannot be selected form the whole PO.
Regards
Dev -
WD(ABAP) - how to populate items in itemlistbox
Is there any reference about how to populate items in Itemlistbox? I have tried to bind a context node with cardinality 1..n and Selection 0..n to the datasource of a itemlistbox element. The node contains two attributes jy and jy_text representing value and text repectively. I assign some sets of data to the attributes and finally bind the table to the node. But it doesn't display anything in the itemlistbox at runtime. Does anyone have idea?
My code is like this:
=====================
DATA:
NODE_HEAD TYPE REF TO IF_WD_CONTEXT_NODE,
NODE_JY_LIST TYPE REF TO IF_WD_CONTEXT_NODE,
ELEM_JY_LIST TYPE REF TO IF_WD_CONTEXT_ELEMENT,
STRU_JY_LIST TYPE IF_MAIN=>ELEMENT_JY_LIST,
tb_jy_list like table of STRU_JY_LIST,
tb_is type table of v_tb038a_std,
st_is type v_tb038a_std.
* navigate from <CONTEXT> to <HEAD> via lead selection
NODE_HEAD = WD_CONTEXT->GET_CHILD_NODE( NAME = `HEAD` ).
* navigate from <HEAD> to <JY_LIST> via lead selection
NODE_JY_LIST = NODE_HEAD->GET_CHILD_NODE( NAME = `JY_LIST` ).
select ind_sector text into CORRESPONDING FIELDS OF TABLE tb_is from V_TB038A_STD where SPRAS = '1'.
LOOP AT tb_is into st_is.
STRU_JY_LIST-jy = st_is-ind_sector.
STRU_JY_LIST-jy_text = st_is-text.
insert STRU_JY_LIST into TABLE tb_jy_list.
ENDLOOP.
NODE_JY_LIST->bind_table( tb_jy_list ).
Message was edited by: Fred ZhouHi Fred,
You should check the following:
The text property of the listbox should bind to the text attribute of your context node.
Regina -
How to hide items on Windows 8 File Explorer Ribbon
Scenario
This article describes how to hide items on the file explorer ribbon in Windows 8 and Windows 8.1.
Method
We can implement it via customizing the permission of the related registry keys.
Note: Before you make changes to a registry key or subkey, we recommend that you export, or make a backup copy, of the key or subkey.
Before you make changes to a registry key or subkey, we recommend that you
export, or make a backup copy, of the key or subkey.
Step 1:
Open
Registry Editor and locate to following registry key under which you can find the corresponding keys of the items on the File Explorer Ribbon.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\
In the following figure, it shows the Add a network location item on the file explorer ribbon, and the corresponding
registry key in Registry Editor.
Step 2:
Take ownership of the registry key
Note: You can take ownership
of a registry key if you are logged on as an administrator or if you have been specifically assigned the permission to take ownership of the registry key by the current owner.
Right-click on the registry key which you want to take ownership of,
and then select
Permissions... option.
Click on
Advanced button to grant special permissions in the key.
At the top to the right of the current
Owner, click on the Change link.
Enter
Administrator in the Enter the object name to select
box, and then click on Check Names.
Click on
OK twice to apply.
Step 3:
Change the permission of the registry key.
On
Permissions for the key name display dialog, click
Administrators in the Group or user names window, and then select the
Allow check box for
Full Control
option.
Click
Users in the Group or user names window, and then select the
Deny
check box for
Full Control
option.
Step 4:
Click on
Apply and OK to save the changes and the following figure shows the modified permissions and owner.
Step 5:
When you open File Explorer, the item you would like to hide disappears. For your information, the following is an example:
Item: Add a network location
Corresponding Registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Windows.AddNetworkLocation
For advanced users
You can also deploy script with Set-Acl which is a PowerShell command to take ownership and change permissions
of the keys. For your information, please refer to the following articles to learn more about this command:
Set-Aclhttp://technet.microsoft.com/en-us/library/hh849810.aspx
SET-ACL on registry key
http://blogs.technet.com/b/brad_rutkowski/archive/2008/09/29/set-acl-on-registry-key.aspx
Apply to
Windows 8
Windows 8.1
Welcome to your feedbacks.
Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.The reason they gave was it is possible for the file to stay open when done with the file. (not properly closing) As the driver would be accessing the file to retrieve the thumbnail.
The thing is a driver is nothing more than a program it self. Therefore it is capable of opening and closing a file and placing the thumbnail into the database for that folder. It then would be capable to verify if the thumbnail exists in that database. Since the driver only has to run when explorer is open in that folder's view, it really is not running that often.
The catch I can see it when both Illustrator and explorer are running at the same time. Which one should close the file? The solution would be a small app that verifies that both programs are running and has control of clean up when both have closed. The driver and Illustrator could also in theory check and see if the other is running, if it is do nothing if not then close the file.
So it really boils down to having the driver and Illustrator talking to each other. -
Need FM/BAPI to get how many line items per given FI document...
Hello Experts,
IS there an available FM or BAPI to get how many line items there is for a given
FI document? We are avoinding BSEG because of the performance.
Hope you can help me guys. Thank you and take care!Hi,
Not sure if there is a specific FMs or BAPIs whose specific purpose is to just count FI document lines. But you can use a number of FMs to read an FI document.
i.e. FI_DOCUMENT_READ - pass the document keys (BUKRS, BELNR, GJAHR) and retrieve the T_BSEG table to get the document lines. Then you can just use DESCRIBE statement to get the number of lines in T_BSEG.
Also, based on experience, I never had any problems with BSEG as long as I am providing the complete keys for an FI document (BUKRS, BELNR, GJAHR). But if you are trying to avoid BSEG, you can use the secondary index tables like BSIS , BSAS, BSAD, BSID, BSIK, BSAK to improve performance.
Regards,
Oscean Tortona -
how to center text in shapes. specifically circles. I want text to be centered directly in the middle
A lot depends on what you mean by centered, the number of lines of text, the actual font, and whether there are descenders.
Using vertical justification set to centered may or may not work for you, depending on the above factors, as it depends on the baseline, I believe, rather than the acutal glyph dimensions. You could try adding baseline shift, I suppose, to make fine vertical adjustments, or you can bite the bullet and use the old-fashioned method of two frames. -
How to center the text displayed in a JList
Hi,
The width of the JList display area is wider than the text displayed. I tried to center the text displayed to make it look nicer. I had tried using "setAlignmentX(Component.CENTER_ALIGNMENT)" in my own ListCellRenderer class but did not work. Any idea how to center the text?
Fai.Yes, I am using JLabels in my renderer and the following is the code:
public class MyCellRenderer extends JLabel implements ListCellRenderer {
private static final Color HIGHLIGHT_COLOR = new Color(0, 0, 128);
public MyCellRenderer() {
setOpaque(true);
setIconTextGap(12);
public Component getListCellRendererComponent(
JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
String entry = (String)value;
setText(entry);
setFont(new Font("Ariel", Font.BOLD, 18));
setAlignmentX(Component.CENTER_ALIGNMENT);
if(isSelected) {
setBackground(HIGHLIGHT_COLOR);
setForeground(Color.white);
} else {
setBackground(Color.white);
setForeground(Color.black);
return this;
Can you point out where to implement the centering logic?
Thanks,
Fai.
Maybe you are looking for
-
Nokia Ovi Suite has lost connection with your devi...
5 months has passed and many hours on the phone to Nokia. The phone has been completely reset /reboot by Nokia time and time again and still the phone gets this message when trying to update software..."Nokia Ovi Suite has lost connection with your d
-
Unable to create a report painter form (Message no. KH205).
Dear all, I am trying to create a report painter form, but the system gives an error: Key figure scheme contains errors -> check definition Message no. KH205 Diagnosis Entry not contained in Table T237A. Procedure Check key figure scheme (in part
-
Changed id, won't update on icloud.
I changed my apple id, but it won't change on icloud on my ipod touch. I can log into icloud on the computer w/ the new id, but the ipod has the old id on icloud and won't allow me to change it. W/o it I can't get my calendar to sync w/ my son's ba
-
Process Chain problem related to Update ODS Object Data (Further Update)
In the process chain, the data is loaded to an ODS first then feed to an InfoCube by kind of data mart load. But when checking the process chain, getting yellow warning msg: A type "Update ODS Object Data (Further Update)" process has to follow proc
-
I learnt that I will need to use SAVE_TEXT module to save what is inside my text editor with the codes as follows: CALL FUNCTION 'SAVE_TEXT' EXPORTING CLIENT = SY-MANDT HEADER = ?... INSERT = SPACE SAVEMODE_DIRECT = SPACE OWNER_SPECIFIED = SPACE IMPO