**** BEGIN LOGGING AT Wed May 22 02:59:58 2013 May 22 15:28:04 hey summatusmentis: https://enyojs.atlassian.net/browse/ENYO-2412 May 22 15:53:14 GodGinrai: thanks May 22 15:53:53 np May 22 15:55:02 sugardave: hey, do you have thoughts on that issue I was having yesterday? http://jsfiddle.net/SZA6Z/10/ May 22 15:58:37 summatusmentis: not yet…what is supposed to happen? May 22 15:59:32 I want the "add" button to stay at the bottom of the list May 22 15:59:54 but the list is expanding it's height for empty space May 22 16:00:04 and I don't want it to May 22 16:00:42 so, List has a Scroller in it, and those want a fixed height or shit don't work right….not sure you can do this without some serious mucking with rendering May 22 16:00:59 let me mess with it a bit May 22 16:01:07 well, the height of the list is adjusting as items are added May 22 16:01:22 list & scroller, I assume May 22 16:03:17 the fundamental problem (I think) is how will the List know to stop expanding as you add more items to it? You need to give it a height….maybe max-height can stop it from going past a certain boundary May 22 16:05:25 something else is wonky, too. You use a FittableRows, but your buttons are laying out inline May 22 16:07:33 nvm, that's onyx.Button doing that….I hate that May 22 16:08:33 sugardave: I'd like the list to stop expanding once the "add" button hits the bottom of the window May 22 16:09:38 well, I'd like a Tesla S. However, the likelihood of that is very low. Much lower than making this work ;) May 22 16:10:13 heh May 22 16:10:29 so, mostly what you're saying is I need to re-design the thing? May 22 16:12:50 I think so, I'm still thinking May 22 16:18:54 summatusmentis: okay, you could probably do this: set the List height to 0px and as you add a row, adjust its height. Also, have max-height set on it and it will never go beyond that. This means you need to know a) the height of the row item you just inserted and b) the calculated height of the space you want the List to take up May 22 16:18:58 not pretty, but it would work May 22 16:21:19 :-/ May 22 16:21:37 how do other frameworks do the "add to a list" thing? May 22 16:22:32 maybe there's a way to fake it? May 22 16:23:01 make the add thing a part of the list, and only care about the data saved at indexes 0 through length-1 May 22 16:23:16 *shrug* I usually use a fixed height List with a border around it so the user can see its area and any buttons underneath it look like they go with it OR I make the last row in my List be the "add" element and continuously scroll to the bottom of the list as they add more things. The resizing I described IS faking it ;) May 22 16:23:52 yeah, it just sounds like more work than a different faking it May 22 16:24:16 I like the scroll to the bottom idea May 22 16:24:26 sugardave: Did you see the bug I linked? May 22 16:24:27 1 or 2 helper functions, that's all :) May 22 16:24:40 I made a report on the JIRA May 22 16:25:36 sugardave: the problem is I'm not super familiar with managing window heights and so forth May 22 16:25:58 GodGinrai: ah, nifty May 22 16:27:01 summatusmentis: no problem, I can help you there….want the height of something, like a rendered control? this.$.theControl.hasNode().clientHeight; //returns the integer vaue of the height in px without the "px" May 22 16:27:35 or straight up element: document.body.clientHeight May 22 16:28:17 summatusmentis: I think the tricky part will be knowing the height of the row you're adding. If you know ahead of time they can be fixed via CSS or something, then it isn't a problem at all May 22 16:28:30 sugardave: wouldn't controlname.getBounds().height be more correct to use? May 22 16:28:55 perhaps, I always use clientHeight….never tried getBounds before May 22 16:29:23 getBounds gives you offsetHeight May 22 16:30:38 If I ever have to do this, I'm usually getting the entire body height and subtracting the clientHeights of other elements…so far so good May 22 16:30:56 but getBounds may save me a step or two May 22 16:31:11 :) May 22 16:31:37 summatusmentis: Is there a reason you are opposed to using crateComponent? May 22 16:31:44 *createComponent May 22 16:35:41 GodGinrai: it feels like magic, I'm never entirely sure how it works, and it doesn't work well for re-rendering May 22 16:35:59 or, I've never been able to get it to do the right thing when re-rendering May 22 16:40:57 o_ô May 22 16:41:03 the trick with createComponent/s is that when you dynamically create them like that, you have to render them yourself May 22 16:41:11 exactly May 22 16:41:30 var newThing = this.$.oldThing.createComponent({name: "newThing", content: "I'm new!"}; May 22 16:41:33 newThing.render(); May 22 16:41:33 just call render() after you create the component and you'll be fine May 22 16:42:07 well, I missed a ), but you get the idea May 22 16:42:35 no, I'm using render() on the parent kind to reset fields and stuff May 22 16:42:38 after storing data May 22 16:42:51 but having created a component breaks the way I think about the behavior May 22 16:43:00 that's fine, too, as long as it gets rendered as part of that parent May 22 16:43:14 but with List, you don't need to use createComponent May 22 16:43:32 right, the issue is that createComponent is usually as a part of other logic May 22 16:43:48 and that logic gets hit more than once, so it's easier for me to just delcare the components initially May 22 16:44:09 yeah, it all depends on what you need it to do, for sure May 22 16:45:06 I mean, I'm not saying I never use it, my code has it now right now (coupled with destroy) to mock an interface based on inputs from the user May 22 16:45:17 but for most things, I prefer to declare initially May 22 16:53:01 sugardave: The reason I was asking about createComponent, is because I think that trying to use a List here is essentially shoehorning May 22 16:54:14 sure, but what if he has 1000s of rows? Doubtful, BUT IT COULD HAPPEN! May 22 16:56:08 I hope we don't have 1000s of rows May 22 16:56:23 I'm using a list because it makes sense to me, and there's re-orderability May 22 17:05:06 hmm, I guess the reorderability would be useful May 22 17:05:10 oh btw May 22 17:05:39 sugardave: I was taking a look at some of the stuff in the latest nightly, and I'm very stoked May 22 17:05:49 FlexLayouts :) May 22 17:06:13 wait, you mean I'll have to learn another new layout paradigm? May 22 17:06:17 I'm just getting used to Fittables May 22 17:06:45 summatusmentis: Layouts are things to be used when you have a need for them May 22 17:07:05 I probably need them, I just don't know it yet May 22 17:07:35 lol May 22 17:11:13 yeah, I need to look into the new FlexLayout stuff….might be time to retire Fittables (for me) May 22 17:11:34 I've been spending all my time with controllers and such May 22 17:12:19 when is MVC gonna be "ready?" May 22 17:12:21 2.3? May 22 17:13:06 2.3 supposedly May 22 17:30:59 sugardave: What's the current status on documentation for 2.3? I feel like there is really a need for documentation for MVC, Router, and Flexboxes May 22 17:31:46 is there documentation? May 22 17:31:52 that's a new one on me May 22 17:32:05 summatusmentis: 2.3 is the target, yes May 22 17:32:59 GodGinrai: so things have been changing so documentation isn't a high priority until things settle down a bit more…there was actually a pretty big API-breaking change a couple of weeks ago that bit me in the ass while Cole was in Korea May 22 17:36:01 API-breaking? May 22 18:04:28 ugh, my enyo page is hanging in chromium all of a sudden May 22 18:04:51 what about Firefox? May 22 18:05:30 I'm checking safari now May 22 18:07:05 seems to be hanging in Safari too May 22 18:07:10 urgh May 22 18:07:16 try FF May 22 18:09:53 unresponsive script. Object.js:83 May 22 18:09:55 :-/ May 22 18:10:25 what's on line 83? May 22 18:14:04 ah, so I broke something by accidentally bubbling in an onSetupItem May 22 18:16:38 "accidentally" bubbling? May 22 18:17:39 yeah, setting a published property of the item, that called a method that caused a bubble May 22 18:22:50 ah May 22 18:23:09 what kind of event was bubbled? May 22 18:41:51 something that was messing with the item itself May 22 18:41:53 it's fixed May 22 18:45:25 cool cool May 22 18:55:54 hey sugardave, shouldn't they make tooltips into a mixin? May 22 20:32:51 hrm... my add to list thing seems to be triggering twice May 22 20:33:44 weird May 22 20:36:59 GodGinrai: do you know of a good way to track when/why events are being triggered? May 22 21:43:42 Hey summatusmentis, I just saw your message. May 22 21:43:46 no big May 22 21:44:21 The easiest way would be to look through the call stack May 22 21:45:43 urgh May 22 21:46:16 another thing you could do May 22 21:46:25 is log inSender in the event May 22 21:46:33 to see who is calling the event May 22 21:46:48 yeah, they're both the same May 22 21:46:58 I've got a hacky way of handling right now May 22 21:47:56 hrm... I've gotta go for a while, but I should be on again later tonight. May 22 21:48:27 no worries May 22 21:48:30 I was just curious May 22 21:48:34 k May 22 21:48:36 bbl **** ENDING LOGGING AT Thu May 23 02:59:59 2013