RE: [flexcoders] x, y, width, and height in CSS
Hmm, and so the obvious problem has now hit me, which is that UIComponent's measure() method is overriden, which means that overriding measure() at the UIComponent level doesn't work. It also doesn't make sense as a place to override x and y. So I'll go back to Peter's suggestion and hope that someone on the framework team can confirm or deny a x/y/width/height change in 2.1 here(otherwise I'll start bugging folks myself). Thanks, Brian From: Brian Deitte Sent: Sunday, November 05, 2006 11:01 PMTo: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] x, y, width, and height in CSS Hi Igor, yeah I did think about that when I read Manish's article, but I didn't like the idea of altering UIComponent rather using my own, extended components. It seemed too likely that I could do something wrong, and I didn't like the idea of updating a piece that everyone on the team has to remember about when dealing with Flex hotfixes or updates. But given the benefit that this could provide for the designer, I probably should quit my worrying. :) And assuming that x/y/width/height are showing up in CSS in the update, this is a great short-term solution. Thanks, Brian From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Igor CostaSent: Friday, November 03, 2006 1:35 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] x, y, width, and height in CSS Hi BrianNot each component but also you could do just in the mx.core.UIComponent classIt will affect all components.Regards. On 11/3/06, Brian Deitte [EMAIL PROTECTED]com wrote: Hi Igor, if this is fixed in 2.1, that'd be great to know. As for Manish's approach, the problem for me with this is that I would need to override every Flex component that is used to get this to work, not just Canvas. Hopefully it is changed in 2.1 or Peter's solution will work. -Brian From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Igor CostaSent: Friday, November 03, 2006 8:15 AMTo: [EMAIL PROTECTED]ups.comSubject: Re: [flexcoders] x, y, width, and height in CSS BrianAs in liveDocs says the values ( width, height, x,y ) doesn't support in an external CSS file, but you can also use as Manish J. saidhttp://mannu.livejournal.com/299285.html you can override the class and start doing this .I had a same situation last week when I was trying to get a designer to start doing the CSS code but with the width and height he couldn't do nothing I just searched in the google and found that link above too and did the same, worked but also isn't enough. I belive the in 2.1 version of Flex this will be fixed ( I guess).Regards. On 11/2/06, Brian Deitte [EMAIL PROTECTED]com wrote: Is there any thoughts on having x, y, width, and height in CSS? I findit painful to not have the values there when working with a designer andusing absolute positioning. My life would be much easier if I couldsimply set up the Flex application on the designer's machine, point himto the CSS, and let him make design changes himself.I've read Manish's posts on this(http://mannu.livejournal.com/359634.html,http://mannu.livejournal.com/299285.html) as well as Gordon's flexcoderspost where he says this is by design. I assume this is by design forperformance reasons, and that the framework would be slowed down byhaving to look up the values continuously to check for runtime changes.So how about special-casing these four values in CSS, and allowing themto continue to be properties?-Brian-- Igor Costawww.igorcosta.com -- Igor Costawww.igorcosta.com __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
RE: [flexcoders] x, y, width, and height in CSS
Hi Igor, yeah I did think about that when I read Manish's article, but I didn't like the idea of altering UIComponent rather using my own, extended components. It seemed too likely that I could do something wrong, and I didn't like the idea of updating a piece that everyone on the team has to remember about when dealing with Flex hotfixes or updates. But given the benefit that this could provide for the designer, I probably should quit my worrying. :) And assuming that x/y/width/height are showing up in CSS in the update, this is a great short-term solution. Thanks, Brian From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Igor CostaSent: Friday, November 03, 2006 1:35 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] x, y, width, and height in CSS Hi BrianNot each component but also you could do just in the mx.core.UIComponent classIt will affect all components.Regards. On 11/3/06, Brian Deitte [EMAIL PROTECTED]com wrote: Hi Igor, if this is fixed in 2.1, that'd be great to know. As for Manish's approach, the problem for me with this is that I would need to override every Flex component that is used to get this to work, not just Canvas. Hopefully it is changed in 2.1 or Peter's solution will work. -Brian From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Igor CostaSent: Friday, November 03, 2006 8:15 AMTo: [EMAIL PROTECTED]ups.comSubject: Re: [flexcoders] x, y, width, and height in CSS BrianAs in liveDocs says the values ( width, height, x,y ) doesn't support in an external CSS file, but you can also use as Manish J. saidhttp://mannu.livejournal.com/299285.html you can override the class and start doing this .I had a same situation last week when I was trying to get a designer to start doing the CSS code but with the width and height he couldn't do nothing I just searched in the google and found that link above too and did the same, worked but also isn't enough. I belive the in 2.1 version of Flex this will be fixed ( I guess).Regards. On 11/2/06, Brian Deitte [EMAIL PROTECTED]com wrote: Is there any thoughts on having x, y, width, and height in CSS? I findit painful to not have the values there when working with a designer andusing absolute positioning. My life would be much easier if I couldsimply set up the Flex application on the designer's machine, point himto the CSS, and let him make design changes himself.I've read Manish's posts on this(http://mannu.livejournal.com/359634.html,http://mannu.livejournal.com/299285.html) as well as Gordon's flexcoderspost where he says this is by design. I assume this is by design forperformance reasons, and that the framework would be slowed down byhaving to look up the values continuously to check for runtime changes.So how about special-casing these four values in CSS, and allowing themto continue to be properties?-Brian-- Igor Costawww.igorcosta.com -- Igor Costawww.igorcosta.com __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
RE: [flexcoders] x, y, width, and height in CSS
Thanks Peter. If I can use Left/Right/Top/Buttom or Padding* for all the components where I specify x/y/width/height, this will bea goodsubstitute. -Brian From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Peter BairdSent: Thursday, November 02, 2006 6:30 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] x, y, width, and height in CSS There are some reasonable approaches for some of things your looking for inCSS. For X and Y positioning, you can use the CSS values Left, Right, Top, andBottom to specify the pixels distance.For height, for controls like button, you can use your CSS paddings to, in asense, define the height. For example, a button, setting PaddingTop andPadding Bottom will create a consistent height for buttons across allbuttons with that styleName. You can play around with paddingTop andpaddingBottom until you get the desired height (http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplorer.html) and use that to define height.-peter On 11/2/06 2:47 PM, "Brian Deitte" [EMAIL PROTECTED]com wrote: Is there any thoughts on having x, y, width, and height in CSS? I find it painful to not have the values there when working with a designer and using absolute positioning. My life would be much easier if I could simply set up the Flex application on the designer's machine, point him to the CSS, and let him make design changes himself. I've read Manish's posts on this (http://mannu.livejournal.com/359634.html, http://mannu.livejournal.com/299285.html) as well as Gordon's flexcoders post where he says this is by design. I assume this is by design for performance reasons, and that the framework would be slowed down by having to look up the values continuously to check for runtime changes. So how about special-casing these four values in CSS, and allowing them to continue to be properties? -Brian -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] x, y, width, and height in CSS
Hi BrianNot each component but also you could do just in the mx.core.UIComponent classIt will affect all components.Regards.On 11/3/06, Brian Deitte [EMAIL PROTECTED] wrote: Hi Igor, if this is fixed in 2.1, that'd be great to know. As for Manish's approach, the problem for me with this is that I would need to override every Flex component that is used to get this to work, not just Canvas. Hopefully it is changed in 2.1 or Peter's solution will work. -Brian From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Igor CostaSent: Friday, November 03, 2006 8:15 AMTo: [EMAIL PROTECTED]ups.comSubject: Re: [flexcoders] x, y, width, and height in CSS BrianAs in liveDocs says the values ( width, height, x,y ) doesn't support in an external CSS file, but you can also use as Manish J. said http://mannu.livejournal.com/299285.html you can override the class and start doing this .I had a same situation last week when I was trying to get a designer to start doing the CSS code but with the width and height he couldn't do nothing I just searched in the google and found that link above too and did the same, worked but also isn't enough. I belive the in 2.1 version of Flex this will be fixed ( I guess).Regards. On 11/2/06, Brian Deitte [EMAIL PROTECTED] wrote: Is there any thoughts on having x, y, width, and height in CSS? I findit painful to not have the values there when working with a designer andusing absolute positioning. My life would be much easier if I couldsimply set up the Flex application on the designer's machine, point himto the CSS, and let him make design changes himself.I've read Manish's posts on this(http://mannu.livejournal.com/359634.html, http://mannu.livejournal.com/299285.html) as well as Gordon's flexcoderspost where he says this is by design. I assume this is by design forperformance reasons, and that the framework would be slowed down byhaving to look up the values continuously to check for runtime changes.So how about special-casing these four values in CSS, and allowing themto continue to be properties?-Brian-- Igor Costawww.igorcosta.com -- Igor Costawww.igorcosta.com __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] x, y, width, and height in CSS
There are some reasonable approaches for some of things your looking for in CSS. For X and Y positioning, you can use the CSS values Left, Right, Top, and Bottom to specify the pixels distance. For height, for controls like button, you can use your CSS paddings to, in a sense, define the height. For example, a button, setting PaddingTop and Padding Bottom will create a consistent height for buttons across all buttons with that styleName. You can play around with paddingTop and paddingBottom until you get the desired height ( http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplorer. html) and use that to define height. -peter On 11/2/06 2:47 PM, Brian Deitte [EMAIL PROTECTED] wrote: Is there any thoughts on having x, y, width, and height in CSS? I find it painful to not have the values there when working with a designer and using absolute positioning. My life would be much easier if I could simply set up the Flex application on the designer's machine, point him to the CSS, and let him make design changes himself. I've read Manish's posts on this (http://mannu.livejournal.com/359634.html, http://mannu.livejournal.com/299285.html) as well as Gordon's flexcoders post where he says this is by design. I assume this is by design for performance reasons, and that the framework would be slowed down by having to look up the values continuously to check for runtime changes. So how about special-casing these four values in CSS, and allowing them to continue to be properties? -Brian -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] x, y, width, and height in CSS
BrianAs in liveDocs says the values ( width, height, x,y ) doesn't support in an external CSS file, but you can also use as Manish J. saidhttp://mannu.livejournal.com/299285.html you can override the class and start doing this .I had a same situation last week when I was trying to get a designer to start doing the CSS code but with the width and height he couldn't do nothing I just searched in the google and found that link above too and did the same, worked but also isn't enough. I belive the in 2.1 version of Flex this will be fixed ( I guess).Regards.On 11/2/06, Brian Deitte [EMAIL PROTECTED] wrote: Is there any thoughts on having x, y, width, and height in CSS? I find it painful to not have the values there when working with a designer and using absolute positioning. My life would be much easier if I could simply set up the Flex application on the designer's machine, point him to the CSS, and let him make design changes himself. I've read Manish's posts on this (http://mannu.livejournal.com/359634.html, http://mannu.livejournal.com/299285.html) as well as Gordon's flexcoders post where he says this is by design. I assume this is by design for performance reasons, and that the framework would be slowed down by having to look up the values continuously to check for runtime changes. So how about special-casing these four values in CSS, and allowing them to continue to be properties? -Brian -- Igor Costawww.igorcosta.com __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] x, y, width, and height in CSS
Is there any thoughts on having x, y, width, and height in CSS? I find it painful to not have the values there when working with a designer and using absolute positioning. My life would be much easier if I could simply set up the Flex application on the designer's machine, point him to the CSS, and let him make design changes himself. I've read Manish's posts on this (http://mannu.livejournal.com/359634.html, http://mannu.livejournal.com/299285.html) as well as Gordon's flexcoders post where he says this is by design. I assume this is by design for performance reasons, and that the framework would be slowed down by having to look up the values continuously to check for runtime changes. So how about special-casing these four values in CSS, and allowing them to continue to be properties? -Brian -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/