From: Matthew S. <PK...@Tu...> - 2000-11-27 17:38:02
|
Hey all, I have seen this question asked a few times in one form or another but I have yet to see any kind of answer. Even a "that's not possible" answer would be preferable to nothing at all. I am creating a DynLayer then using setHtml() to set it's contents. This works perfectly on the windows platform. On the Mac it is a different story. First trying to create a DynLayer and omitting the size generated an error. There was a patch posted that fixed the error but did not actually fix the problem. Now if you omit the size and then set the html it looks like the size is effectively 0. It does not adjust to fit the content on the Mac like it does on the PC browsers. I want to know if anyone has a workaround other than using inline layers for this problem. Currently I am using inline layers but this opens up a whole other category of problems for me. My second problem, once again on the mac, has to do with layers inside of layers. If I create two DynLayers and add the second to the first as a child then add the first to the document I get very strange rendering errors. For example if the second layer contains text, the text is repeated where it is supposed to be, then duplicated at the origin of the parent layer, and then duplicated again at the origin of the parent document. This one is really weird and I don't really anticipate an answer. Thanks in advance, Matthew |
From: Scott A. L. <sc...@sc...> - 2000-11-27 18:42:58
|
Matthew: Out of curiosity...are you able to manually set the size of the DynLayer at all after using setHTML on it? -- scott andrew lepera ----------------------------------- web stuff: www.scottandrew.com music stuff: www.walkingbirds.com Matthew Shirey wrote: > > Hey all, > > I have seen this question asked a few times in one form or another but I > have yet to see any kind of answer. Even a "that's not possible" answer > would be preferable to nothing at all. I am creating a DynLayer then using > setHtml() to set it's contents. This works perfectly on the windows > platform. On the Mac it is a different story. First trying to create a > DynLayer and omitting the size generated an error. There was a patch posted > that fixed the error but did not actually fix the problem. Now if you omit > the size and then set the html it looks like the size is effectively 0. It > does not adjust to fit the content on the Mac like it does on the PC > browsers. I want to know if anyone has a workaround other than using inline > layers for this problem. Currently I am using inline layers but this opens > up a whole other category of problems for me. > > My second problem, once again on the mac, has to do with layers inside of > layers. If I create two DynLayers and add the second to the first as a > child then add the first to the document I get very strange rendering > errors. For example if the second layer contains text, the text is repeated > where it is supposed to be, then duplicated at the origin of the parent > layer, and then duplicated again at the origin of the parent document. This > one is really weird and I don't really anticipate an answer. > > Thanks in advance, > > Matthew > > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-help |
From: Matthew S. <PK...@Tu...> - 2000-11-27 20:38:06
|
Yes I am able to set the size without a problem after I use setHTML(). But that is not the problem. On the PC the size is automatically reset when the HTML changes if the size was omitted when created. This does not happen on the mac. I do not know what the size of the content will be. It will by dynamically loaded from a database. I need to be able to set the content, have it automatically adjust, then return the size. This works perfectly on NS and IE on windows but does not work on IE 4.5 or 5 on the Mac. Before the setWidth, setHeight patch attempting to create a DynLayer without specifying width and height produced and error. With the patch there is no error but it appears if you do not specify the width and height it is set to 0. When I use setHTML() it does not grow to the size of the content. If this is a limitation of the browser and not the library I guess I have to live with it but I would like to know where the limitation is. If there is a method to call that I am not aware of like 'setSizeToContent()' that would be great... if anyone knows of a workaround please let me know. I am bound to support the Mac as much as I hate them, so any help would be appreciated. -- Matthew -----Original Message----- From: dyn...@li... [mailto:dyn...@li...]On Behalf Of Scott Andrew LePera Sent: Monday, November 27, 2000 10:43 AM To: dyn...@li... Subject: Re: [Dynapi-Help] Dynamic Height and Child Layers Matthew: Out of curiosity...are you able to manually set the size of the DynLayer at all after using setHTML on it? -- scott andrew lepera ----------------------------------- web stuff: www.scottandrew.com music stuff: www.walkingbirds.com Matthew Shirey wrote: > > Hey all, > > I have seen this question asked a few times in one form or another but I > have yet to see any kind of answer. Even a "that's not possible" answer > would be preferable to nothing at all. I am creating a DynLayer then using > setHtml() to set it's contents. This works perfectly on the windows > platform. On the Mac it is a different story. First trying to create a > DynLayer and omitting the size generated an error. There was a patch posted > that fixed the error but did not actually fix the problem. Now if you omit > the size and then set the html it looks like the size is effectively 0. It > does not adjust to fit the content on the Mac like it does on the PC > browsers. I want to know if anyone has a workaround other than using inline > layers for this problem. Currently I am using inline layers but this opens > up a whole other category of problems for me. > > My second problem, once again on the mac, has to do with layers inside of > layers. If I create two DynLayers and add the second to the first as a > child then add the first to the document I get very strange rendering > errors. For example if the second layer contains text, the text is repeated > where it is supposed to be, then duplicated at the origin of the parent > layer, and then duplicated again at the origin of the parent document. This > one is really weird and I don't really anticipate an answer. > > Thanks in advance, > > Matthew > > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-help _______________________________________________ Dynapi-Help mailing list Dyn...@li... http://lists.sourceforge.net/mailman/listinfo/dynapi-help |