Size of the list does not resize when itemRenderer resizes
I have a list with a custom itemRenderer which is just a rectangle of a specific size.
The list
< s:List id = 'question' width = '100% '.
dataProvider = "{thelistdata}".
itemRenderer = "ListItem".
borderVisible = "true" / >
Note the border that the list is visible to help with debugging
The itemRenderer
< s:Rect id = "box" width = "50" height = "50" >
< s:fill >
< s:SolidColor color = "blue" / >
< / s:fill >
< / s:Rect >
When the itemRenderer receives an event, it changes its size at half
Box.Width = 25;
Box.Height = 25;
I see the itemRenderers resize themselves correctly, but the list itself remains the same size and the rest of the border where it is.
Someone knows how to fix this bug. Basically, the list must update its size based on the smaller boxes too.
It works if you set useVirtualLayout = "false" on the list?
Tags: Flex
Similar Questions
-
While the loop does not stop when the two values are equal using equal to comparitor
Hello world
I have a really, really strange bug. I have a LabVIEW VI that change a chain on a power supply. I have a start and a stop voltage and use a while loop to increment the device. For example if I want to scan from 1, 2V to 2.2 V in 0.2 V incremements, the program will end when "The current tension" = "stop the tension." And it works very well!
However, when I start - 3 V and want to stop to say-0.8 (new in 0.2 V incremements) the program does not stop when "The current tension" = "stop the tension." I checked with the probe close to what should be the end of the race and - 0.8 V goes both of the entries ' equal to ' comaprison operator, but that his can't trigger a real result.
It's very strange for me. Espeically as if I'm going - 0.8 V to-2 V but decrement of-0.2 V, the program stops correctly!
I am very confused!
See you soon!
Search on: comparison of floating-point numbers
The second thread is particularly relevant. This discussion was 2009, but you can find that the same "bug" being reported to enter the end of the 1980s.
Mike...
-
Original title:
Under XP, when I type in the first letter of an e-mail address that is in my contacts, the dropdown does not close when I click the right address. What a nuisance! Also, when I go to create a new e-mail message, an address of my contacts appears in no particular place, making it impossible to complete the message.
Hello
I suggest you turn off Auto complete and then check if you face the same problem.
a. open Outlook Express.
b. click on Tools.
c. click on Options.
d. click the send tab.
e. uncheck the e-mail address automatically complete when composing box.
f. click OK.
Turn Auto complete and test again to see if the behavior is better. To activate it again, follow the same steps as above, but put a check mark in the box.
-
Original title: user profile
My administrator user profile does not work properly, but I have a user profile that has activated the parental control that worked well for about a year and yesterday when this user logs on the desktop comes up, but after that the computer does not respond when that user tries to do anything. There are actually turns off the computer with the power button. I ran a virus scan and spyware scan in my user admin profile and he has not found anything. I don't know what to check.
Hello rhunter15,
There may be a program to interfere with Parental controls so that we can try a few things to see if we can determine the application or program that is causing problems.
First of all, we run System File Checker to see if you have a corrupt file system.
- Click Start
- Click on all programs
- Click Accessories, and then right-click on the command prompt.
- Select the Security tab and choose "Run as Administrator"
- Click on command prompt
- Type SFC/scannow.
It will scan and repair any damaged operating system files.
To determine if there is a program because of a conflict, we recommend that you perform a "clean boot" of the computer. A clean boot is designed to disable programs and services in the background as much as possible. This helps determine which service or program can be the cause of the problem. For more information about how to perform a clean boot for troubleshooting, click the number below to view the article in the Microsoft Knowledge Base.
KB 929135 - how to solve a problem of performaing a clean boot in Windows Vista.
http://support.Microsoft.com/kb/929135Once you have finished the clean boot, check again and see if you get the error of parental control.
If please post again and let us know if that helped pinpoint the problem or if you still need help.
Thank you
Marilyn
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think. -
Images in the field of the list does not
Hello
I create a list field that contains 10 lines and four fields in each line. The first field is the field of the image. But the image does not come. Other three fields (label field) do very well. I use the simulator of 4.7 and 9530.
I give my code here also. Please help me.
class TaskListField extends ListField implements ListFieldCallback { private Vector rows; private Bitmap _mReceiveAmount; private Bitmap _mSentAmount; private boolean hasfocus=false; public TaskListField() { super(0, ListField.MULTI_SELECT); setRowHeight(60); setEmptyString("It is Empty!", DrawStyle.HCENTER); setCallback(this); String images[]={"amount_received.png","amount_sent.png"}; _mReceiveAmount = Bitmap.getBitmapResource("amount_received.png"); _mSentAmount = Bitmap.getBitmapResource("amount_sent.png"); BitmapField bitmap; rows = new Vector(); for (int x = 0; x < 10; x++) { TableRowManager row = new TableRowManager(); // SET THE BITMAP FIELD // if amount received, display bitmap // if (x % 2 == 0) { //bitmap=new BitmapField(_mReceiveAmount); row.add(new BitmapField(Bitmap.getBitmapResource(images[0]))); //} // if amount is sent, set bitmap //else { // bitmap=new BitmapField(_mSentAmount); // row.add(new BitmapField(Bitmap.getBitmapResource(images[1]))); // } // SET THE DATE LABELFIELD // LabelField _mDateField = new LabelField("OCT 10,2010", DrawStyle.ELLIPSIS); row.add(_mDateField); // SET THE LIST NAME row.add(new LabelField("Details" ,DrawStyle.ELLIPSIS) { protected void paint(Graphics graphics) { graphics.setColor(0x00878787); super.paint(graphics); } }); // SET THE DUE DATE/TIME row.add(new LabelField("$220",DrawStyle.ELLIPSIS | LabelField.USE_ALL_WIDTH | DrawStyle.RIGHT) { protected void paint(Graphics graphics) { graphics.setColor(0x00878787); super.paint(graphics); } }); rows.addElement(row); } setSize(rows.size()); } // ListFieldCallback Implementation public void drawListRow(ListField listField, Graphics g, int index, int y,int width) { // g.drawBitmap(0, 0, _mReceiveAmount.getWidth(), _mReceiveAmount.getHeight(), _mReceiveAmount, 0, 0); TaskListField list = (TaskListField) listField; TableRowManager rowManager = (TableRowManager) list.rows.elementAt(index); rowManager.drawRow(g, 0, y, width, list.getRowHeight()); // g.drawBitmap(0, 0, _mReceiveAmount.getWidth(), _mReceiveAmount.getHeight(), _mReceiveAmount, 0, 0); } public class TableRowManager extends Manager { public TableRowManager() { super(0); } // Causes the fields within this row manager to be layed out then // painted. public void drawRow(Graphics g, int x, int y, int width, int height) { // Arrange the cell fields within this row manager. layout(width, height); // Place this row manager within its enclosing list. setPosition(x, y); // Apply a translating/clipping transformation to the graphics // context so that this row paints in the right area. g.pushRegion(getExtent()); // Paint this manager's controlled fields. subpaint(g); g.setColor(0x00CACACA); g.drawLine(10, 0, getPreferredWidth()-10, 0); // Restore the graphics context. g.popContext(); } // Arranges this manager's controlled fields from left to right within // the enclosing table's columns. protected void sublayout(int width, int height) { // set the size and position of each field. int fontHeight = Font.getDefault().getHeight(); int preferredWidth = getPreferredWidth(); // start with the Bitmap Field of the priority icon Field field = getField(0); layoutChild(field, 32, 32); setPositionChild(field, 10, 20); // set the task name label field field = getField(1); layoutChild(field, 120, fontHeight + 1); setPositionChild(field, 70, 3); // set the list name label field field = getField(2); layoutChild(field, 150, fontHeight + 1); setPositionChild(field, 190, 3); // set the due time name label field field = getField(3); layoutChild(field, 150, fontHeight + 1); setPositionChild(field, preferredWidth - 172, 3); setExtent(preferredWidth, getPreferredHeight()); } // The preferred width of a row is defined by the list renderer. public int getPreferredWidth() { return Graphics.getScreenWidth(); } // The preferred height of a row is the "row height" as defined in the // enclosing list. public int getPreferredHeight() { return getRowHeight(); } } public Object get(ListField listField, int index) { // TODO Auto-generated method stub return null; } public int getPreferredWidth(ListField listField) { // TODO Auto-generated method stub return 0; } public int indexOfList(ListField listField, String prefix, int start) { // TODO Auto-generated method stub return 0; } public void onUnFocus(){ hasfocus=false; invalidate(); } }
your code is quite a mess, and you probably have a misconception on the listfield.
in drawListRow you paint directly the object to the line. no need to use fields or similar, graphics methods.
If you have different objects in your listfield you need to branch in your drawListRow method (if bitmap instanceof object etc.).
your brief description, it appears you want to have the bitmap in the same line as your other information.
create a bean with the attributes class, that you need, including the bitmap.
put objects of beans in your listfield and the data structure (vector).
drawListRow check that it is a bean and draw it.
for example (rough code, no control null etc.):
drawBitmap (0, bean.getBitmap ());
drawText (bean.getBitmap (.getWidth () + 5,) bean.getText ());
-
Get the error the Service does not work when you try to update
Original title: Dell Inspiron 1545 model
My Labtop wife; the automatic update is enabled; but will NOT be updated. When I try to update; There are NO error codes. After trying to update. The computer
addresses by specifying THE SERVICE IS DO NOT running. You must restart; also the F8 key does not work.
Hello
1. What is the error message right on the service does not work?
2. were there any changes (hardware or software) to the computer before the show?
Perform the steps in the link and check.
The problems with the installation of updates (Windows Vista)
Hope this information helps.
-
Page of the trial does not load when I connect
When you go buy or try hiking, it leads to a wherwhy page or want to try Photoshop and things and ask you to log in. I log in, and it goes to the next page, which is just a white screen empty except for the bottom, where it has a tongue setings and other things. The page does not load and I can't get it to the trial. I tried two different browsers, chrome, and firefox.
When I go to that page, select experience and click then the next page wants to launch an external application.
You can't do that. You can download the installer directly instead. Here is the link. Don't forget to follow the download instructions on the other will be refused. 2015 Direct download links adobe CC: creative Cloud 2015 Release | ProDesignTools
Here what Chrome tells me the link you posted. The thing about adobe does not charge or is blocked on the machine you.
-
V11.0.12 XI and IE11 Acrobat. Hyperlink inside PDF is a blue rectangle and links to another PDF. When PDF is opened in Acrobat, the link works. When opened in any browser (IE, Firefox, Chrome) the link does not work. How can I get the link to work in browsers?
I think it is a bug. I uninstalled Acrobat and reinstalled Acrobat v11.0.0. I tried the link and it works properly. Then, I installed each both updated and tested the hyperlink. Update 1-10, that the link works. However, when the 11.0.11 update is installed, the "Go to a page in another document" hyperlink stops working in browsers. V11.0.12 installation does not solve the problem. If I uninstall Acrobat and install v11.0.0 with updated v11.0.10, everything works fine.
-
Reduction in the size of the grid does not work
I just installed Lightroom 5.7 on a laptop MSI Windows 8.1.
The "-" key does not decrease the size of the grid, and or not clicking on the field to "reduce the size of the grid" in the "View" menu
Unfortunately, 'increase the size of the grid' worked and now I'm stuck with just two images in my view of the grid.
5.7 Lightroom works perfectly on my desktop in Windows 7.
Yes, thank you - I didn't even know there is a slider on the toolbar, but it does not work at least.
The grid down size menu item should also work, so I'd like to get it fixed somehow, but at least I now have a usable grid.
-
Why the mouse does not disappear when captions are turned off?
Hello!
My owner like apparently not captions when I record my demonstrations, so I have disabled this option when I capture from my demo. However, I discovered that my mouse movement does not capture when the subtitles are disabled, which means that I have to activate the mouse for each slide. It's more annoying than catastrophic, but no one knows why this is happening and how can I prevent? I checked that "capture the mouse" is selected in the recording preferences. I even turned off and back on, nothing works. Is this a bug or user error? (I'm leaning towards option B).
Thank you!
Krista
Hello
I am at a total loss to explain why it happens. Have not really noticed myself.
However, I might be able to ease the pain a little.
I'm not sure it will work, but it can. After you save, select all of the slides in Storyboard mode or in the film. Then activate the mouse for each of them at a time. This part should work. I'm not sure, what if the movements of the mouse will be selected on registration. It may end up when the mouse is there, but you need to reset the coordinates for each slide. Ick!
In this case, you could take a different point of view.
Export captions as a Word document. Change the Word document and delete all the text in the legend. Then import them into empty on all of the legends. Then mount a legend and configure it as a transparent. The apply to all allows you to configure all the other legends in this way. It would still be there, but would be invisible. Can be less painful that way.
Be sure to report the problem of mouse as a bug! The link is in my sig line.
See you soon... Rick
Useful and practical links
-
The computer does not message when installing driver chipset in Pavillion dv6 laptop 1337tx
I have Windows 7 Ultimate 32 bit OS installed in my 1337tx Pavilion dv6 notebook. I have downloaded the driver chipset Intel Chipset Installation Utility link in the official driver of HP download page. But whenever I try to install the software it flashes a message "the computer does not have the minimum requirements for installing the software. The Setup will exit. Why this message is displayed, and how can I fix?
Try the latest driver for Chipset from the following hyperlink:
-
Containing the height of the element does not Change when the browser text size increased.
http://www.imagesandwords.org.UK/Les/pages/coursesMentalHealth.php
So, that ' s the page and this question is on the menu bars.
When I increase the text size in the browser, most of the page holds together, but as far as I can make out (in FF) the element < ul > increases with the size of the police but the < div > with this element is not. Then, it seems that the background image protrudes outside the container < div > and it's ugly.
QA), this is what is happening?
QB) I can fix it?
Thank you very much
Martin
Your chart of menu is quite simple. Try to replace your sprite image with borders and background colors.
.menu
{
Auto margin: 0;
padding: 0;
height: 30px;
Width: 100%;
Display: block;
background: Green;
border-top: 2px solid Brown;
border-bottom: 2px solid Brown;
}Nancy O.
ALT-Web Design & Publishing
Web | Graphics | Print | Media specialists
www.Alt-Web.com/
www.Twitter.com/ALTWEB -
Increase the size of the disc does not completely.
Recently, I noticed that a server was approaching the 600 GB HDD capacity. If (as I did with other servers), I increased the size of the volume on the SAN. vSphere found the climb. Then, I was able to go into Disk Manager and I saw (unpartioned) free space on the server. I expanded the volume without problem. But when I go into windows Explorer, it still shows the old ability. Since I've done it before on other servers, I'm a bit mixed upward. I even restarted early this morning to see if he'll fix it, but it didn't. So, I missed a step key somewhere? Most of my other servers are windows 2008 R2... this one is windows 2008 standard... is there a problem because of this? It seemed simple enough. I did some preliminary research, this morning, but I could not find a definitive answer anywhere. So, I thought I'd try everyone here. Any ideas?
Thank you
Ryan Kotowski
You can try the diskpart utility to extend the drive.
Open the command prompt
1 diskpart
2 volume of the list
3. Select the volume
4 extend the file system
-
My helmet is for some time, as the eye of the terminator, glowing and speakers have not worked since. I need to plug headphones or external speakers. Whenever I try to adjust the volume when it shows just a cross symbol under the sign of the volume, where small squares usually are (see below)
Is there a way to fix this? Some other similar forums tell me to try to manually move a switch in the audio jack, but I can't seem to find such a change and the thing that seems most like a light switch, does not move.
Can someone please help?
Thank you
Your audio output is stuck in optical mode, this is the red light.
The solution is to try to insert and remove the plug a dozen times or more in the hopes of convincing making fall out of optical mode and in electric mode.
-
Have Windows 7 home - 64. Been using Lexmark X 5650 printer successfully several times. Now only print black and white photos. Also a part of any page I want to copy will be printed, only in B & W. Sizes does not correctly... and a lot of ink color & black. Tried all the suggestion of Mr. Fixit, nothing helps. Help please!
Did you upgrade or install something before this product?
How Lexmark support/help/FAQ to say?
Maybe you are looking for
-
Sorry, on the left side of the browser there is a panel that I can't seem to close or delete. It is titled 'history' and it includes a search box and a list of visited sites. None of the typical patches were able to close the box.
-
How to clean a plastic bezel brilliant on Y410P?
Hi all I recently bought Y410P, and it's been great to use. However, after a few days of use, the bezel is full of oil, fingerprints and dust, so I would like to clean it up. My question is how to restore the great shinny bezel brilliant and clean, w
-
Microsoft has a fix for the Audiodg exc. queue? Continue to climb my CPU usage.
My CPU continue to climb when I play solitaire on my computer and my security system informed me that this is the file Audiodg exc. came from Microsoft updated in February of this year... It has something to do with the computer graphic.
-
Microsoft solve this centre.will does not work in my windows vista Ultimate edition 32 bit
i set downloaded Microsoft .but when I go to the for use, he comes up with an error, 0x80092003.a problem prevents to start troubleshooting, continuous .and that my windows vista is not genuine, so that worried me until I checked with the diagnostic
-
Problem with the computer stop
Whenever I try to shut down my pc through windows, it crashes on closing screen. I left once for 7 hours and still happens. I have to manually hold the power button on my case. What you can do to check to see what makes it hang