**** BEGIN LOGGING AT Wed May 23 03:00:00 2012 **** ENDING LOGGING AT Wed May 23 04:35:22 2012 **** BEGIN LOGGING AT Wed May 23 04:36:15 2012 May 23 19:06:53 Hello everyone May 23 20:49:29 does anyone know of a way to set a percentage size in enyo of a div that gets populated after the div is created? May 23 20:57:36 summatusmentis: can't you set it using css? May 23 21:12:57 so, when I try to initially set the div to be "min-height: 50%;" it doesn't seem to stick. When I try to do so after the fact, it doesn't seem to adjust either. I _think_ part of the issue is that the stuff that's being put into the div afterwards is also a bunch of divs May 23 21:22:52 You may have to render() the div after sizing it May 23 21:26:59 So.... I'm using a slideable kind to more or less emulate the webOS cards interface.... My issue is that the content I have inside the slideable hangs outside the slideable object.... Anyway to hide what extends beyond it's width? May 23 21:32:31 I've tried setting the object around it to a higher z-index, and lowering the slideable's z-index... No change, then again, not sure if that's the correct approach.... May 23 21:39:38 projectAlarum: the thing is, if I set the dive to be "min-height: 50px;" it works just fine May 23 21:39:49 it's only when I use css for percentage heights May 23 21:54:25 summatusmentis: can you ever set the min-height to a percentage? May 23 21:55:23 projectAlarum: give it the correct size and in css set overflow: hidden; May 23 21:55:54 A) do we have a horizontal slider in Enyo2 May 23 21:56:18 B) is there documentation available for the layout library? May 23 21:57:45 You can scroll horizontally with the Enyo scroller in 2.0, and the slideable kind also lets you slide horizontally, not sure about the documentation though, I kinda just played with it til I got it to work but that's exactly what I'm playing with right no May 23 21:57:45 w May 23 21:58:07 And thank you for the overflow tip May 23 21:58:12 Works like a champ :) May 23 21:58:39 madnificent: I thought so? May 23 21:59:45 oh. "Percentage values refer to the height of the containing block. If the height of the containing block is not specified explicitly (that is, it depends on content height), and this element is not absolutely positioned, the percentage value is treated as zero." May 23 21:59:54 so that's the issue May 23 21:59:58 summatusmentis: i'm not entirely sure. what i'd do if it didn't want to work (which is perfectly possible) is to ask for the width of the parent, and set min-width programmatically to half of the pixels of the parent. it's a bit of a hack. May 23 22:00:21 ah, there you have it. css spec? May 23 22:00:29 from http://reference.sitepoint.com/css/min-height May 23 22:00:31 projectAlarum: yay :D May 23 22:01:08 so, I either need to make the containing block have a height of 100 May 23 22:01:15 projectAlarum: thanks for the scroller advise :) i have no idea where to find these things. May 23 22:01:22 or, I need to figure something else out May 23 22:01:30 * madnificent tries out enyo.Scroller May 23 22:03:03 Absolutely, I played with the scroller for a bit and got frustrated, plus I wanted something more similar to the webOS cards interface, and the slideable turned out best May 23 22:04:23 And for sizing, one thing I've done is set the parent based on screen size, example: style="height: " + (window.innerHeight *0.5) + "px;" and then based all the children off it with percentages May 23 22:04:23 projectAlarum: i'm curious as to what you're building :) May 23 22:05:04 :) I'm rebuilding my website using Enyo, kind of a portfolio for my apps, sites, etc. May 23 22:05:16 cool cool, is the dev version up? May 23 22:06:06 Not yet, was probably going to here shortly, especially now that I got the content outside the slideable to hide May 23 22:07:49 * madnificent is curious what you did with the card-like interface :) May 23 22:09:41 madnificent: that's the issue, height got lost in my containing divs May 23 22:12:28 More of a proof of concept really May 23 22:12:35 ok, i want 4 panes with 3 vertical bars to separate them. will probably have to use the slideable as well May 23 22:13:34 also, is there a way to tell the components of a scroller not to care about the size of their parent? May 23 22:14:09 that's a css question, basically. but my knowledge of css is too rusty May 23 22:14:32 projectAlarum: good enough, i just like to toy around with enyo2 stuff. really hope to see an environment grow around it May 23 22:14:43 * madnificent misses multiple inheritance and before/after methods May 23 22:16:19 Not sure May 23 22:16:40 I'm a little rusty on CSS as well.... May 23 22:19:30 where do i find slideable? or am i looking at the wrong thing here? May 23 22:20:48 I found it under API docs, onyx.slideable May 23 22:21:42 onyx.slideable wai you no show up in my api docs? May 23 22:21:49 Lol May 23 22:22:40 Http://enyojs.com/api/#onyx.Slideable May 23 22:25:04 * madnificent starts to freak out a little May 23 22:26:30 sigh, i'm affraid that what i want to do is a tad too complx for enyo.slidable May 23 22:26:47 I so wish I could just program for a living.... May 23 22:26:52 Oh teach? May 23 22:26:59 *Yeah* May 23 22:27:25 projectAlarum: why can't you? we programmers are wanted virtually everywhere May 23 22:30:05 It's one of those catch22's: you have to have the experience to get the job, but no one wants to give you the job to get the experience, all my it experience other than independently has all been networking/sys admin stuff May 23 22:30:30 projectAlarum: my github page seems to help me a lot with that May 23 22:33:28 Biggest issue is that there really aren't any programming jobs in my area, the hospital I work at is the biggest employer here and unless I wanna be a CIO there's not much more room to move upward, I wish I could just take our 'web-developers' job.... His May 23 22:33:28 lotus notes websites are a joke..... May 23 22:33:52 projectAlarum: where do you live? May 23 22:34:36 Pueblo, CO May 23 22:35:23 And my wifes kids have their dad here too, hard to leave.... May 23 22:45:08 Good-bye everyone, have a good one@ May 23 23:12:14 in enyo1 there were these panels which you could slide back and forward. do we have those in enyo2? it'd be cooler to reuse one of those components than to try and roll my own May 23 23:18:23 nah, but there's sliders in enyo 2 May 23 23:18:34 and they work fairly well May 23 23:18:48 but they're more of stuff-that-comes-off-the-screen than integrated into the app itself May 23 23:28:05 fxspec06: can you integrate 3 sliders in each other? + is there an example about it? it seems like i'm messing up May 23 23:29:14 hmmm, perhaps i can take the slideable and use that... May 23 23:29:16 * madnificent thinks hard May 24 00:46:06 what do you mean, in each other May 24 00:46:24 nest sliders? i believe you can. May 24 00:46:52 but they are difficult to manipulate May 24 00:47:14 and by difficult, i mean a heck-of-a-lot easier than they ever were in enyo 1 May 24 00:47:46 but to get them to animate with each other instead of independently, you'd have to use your imagination and probably make your own kind May 24 00:50:48 is it hard to comm board swap a GSM pre2 w/ a CDMA pre2? May 24 00:50:56 my GSM pre2 runs better and faster =( May 24 00:51:09 i'd actually do it, too.. not today, maybe tomorrow May 24 00:56:20 yeah, it's not sweet May 24 00:56:38 fxspec06: probably more luck in webosinternals with that question May 24 01:04:33 meh May 24 01:04:48 they're busy in there, doing important stuff May 24 01:05:04 i tend to think so anyways. i'd rather let them be May 24 01:20:03 odd. i call foo.destroyComponents(); foo.createComponent( something ); foo.render(); but foo still contains the same components as it had originally. and something isn't it May 24 01:27:28 try render in between May 24 01:27:52 i couldn't get destroycomponents to work.. had to destroy the component inside the components May 24 01:28:02 but that was a while ago, and it may have bene for enyo 1 May 24 01:28:14 it works for the other two components in there :/ odd May 24 01:28:23 hmm, but they are nested further May 24 01:28:24 * madnificent hacks May 24 01:29:25 wait May 24 01:29:38 what is destroyComponents supposed to do May 24 01:29:49 do you have to specify components to destroy inside it May 24 01:30:02 no, it should delete all afaik May 24 01:30:20 Destroys all owned components. May 24 01:30:36 yeah, so that's everything inside the components array, right? May 24 01:30:40 are you sure the components are owned by it May 24 01:31:20 wait, when are they owned by it, perhaps i misunderstood May 24 01:31:33 * madnificent kind of assumed he understood, he could well be wrong. May 24 01:31:50 well i think i understand but then whenever i try it i screw it up May 24 01:32:04 i mean destroyComponents() should work theoretically May 24 01:32:20 but i never got it to work. also: May 24 01:32:36 so i should call destroyComponents on the thing that has the components in its components : [ here ] May 24 01:32:49 when you create a component dynamically (in enyo 1 at least, enyo 2 too i think) you can't access it via this.$.componentname directly May 24 01:32:50 destroyClientControls... what's that :) May 24 01:33:02 you have to access it through it's owner.. so this.$.owner.$.componentname May 24 01:33:09 it's statically there May 24 01:33:14 whereas if it was hardcoded in the file you'd be able to May 24 01:33:15 but thanks May 24 01:33:16 idk if that's a glitch May 24 01:33:48 you can try creating the components at first, and then destroyComponents() might work with those. so make it empty and then fill it when you need May 24 01:33:56 if that makes sense May 24 01:34:39 no, destroyComponents doesn't do what i think it should do... :/ May 24 01:34:49 if i put default content in the others, it doesn't do what i want either. May 24 01:35:25 then what the heck does destroycomponents do May 24 01:35:29 try setting the owner manually May 24 01:35:39 then call it May 24 01:35:47 how? May 24 01:36:52 this.$.kindddd.createComponent({kind:"FittableRows", name:"myname"}, {owner: "kindddd"}); May 24 01:36:52 o, FU, the owner is the kind that i'm defining there May 24 01:37:00 not the object in which the component is listed May 24 01:37:12 * madnificent no likes enyo, not cool May 24 01:37:18 lol May 24 01:37:28 enyo is sophisticated and in some times it baffles me May 24 01:37:39 and in some cases disappoints May 24 01:37:47 so now i wonder how i'm supposed to delete it. aside from creating a separate component May 24 01:37:49 but then i think about and then i forgive it May 24 01:37:54 which isn't the worst thing to do, but it pollutes the namespace May 24 01:38:06 you can ALWAYS call destroy() May 24 01:38:10 that has never not worked May 24 01:38:46 but then i lose the whole object, no? May 24 01:38:48 also remember you can access the heirarchy via strings.. so you can theoretically loop w.e you want May 24 01:38:58 this.$["name"].destroy() May 24 01:39:10 you can get the children of it and destroy them May 24 01:39:25 does enyo contain a map function over a list? May 24 01:39:38 it does :D May 24 01:39:51 var components = this.$.kindToDestroyComponentsOf.children[0]; for(var c in components){components[c].destroy()} May 24 01:40:13 IIRC May 24 01:40:56 that's uglier imho May 24 01:41:17 it works though May 24 01:41:20 it is ugly.. May 24 01:44:37 soooo, i destroy the components, which i get through this.$.leftContent.getComponents()... and it still doesn't work /o\ May 24 01:45:13 hmmm, no May 24 01:47:52 you have to render the kind for it to work maybe May 24 01:48:00 for the changes to show May 24 01:48:57 no, map seems to destroy only one of the two components May 24 01:49:30 * madnificent thinks he knows what's wrong May 24 01:53:23 oh ? and what is that May 24 01:56:17 no, i understand shit of this May 24 01:58:23 right, so it doesn't work yet, BUT, apparently enyo.map assumes that the array over which it is mapping doesn't change May 24 01:58:46 why don't you document that? w h y d o n ' t y o u d o c u m e n t t h a t ? May 24 02:01:06 ZOMG, now it doesn't automatically keep its distance anymore May 24 02:01:14 bad enyo, bad bad enyo! May 24 02:04:41 wait, i think i get it May 24 02:04:48 this works perfectly nice if i'm not being an ass to enyo May 24 02:06:56 aside from the required boilerplate you made me write, i like you again enyo May 24 02:15:11 wait, so what the heck happened May 24 02:15:17 please explain **** ENDING LOGGING AT Thu May 24 02:59:58 2012