**** BEGIN LOGGING AT Fri Sep 07 02:59:59 2012 Sep 07 13:50:48 sugardave: around? Sep 07 13:52:15 or fxspec06? Sep 07 13:57:52 what's up Sep 07 14:07:02 is there a kind that will display html content? Sep 07 14:08:08 oh, btw, figured out my list problem...seemed to be that it was wrapped in this: {style: "position: relative;", components: [ Sep 07 14:10:12 {allowHtml: true, content: "

YELP

"} Sep 07 14:10:33 PrplHaz4: http://enyojs.com/api/#enyo.Control::allowHtml Sep 07 14:11:16 haha...more like RTFM Sep 07 14:11:18 thx guys Sep 07 14:11:32 fxspec06: can you look at a few code snippets, and let me know if you see anything wrong w/ the fittable structures? Sep 07 14:11:32 it's cool Sep 07 14:11:38 ya, sure Sep 07 14:11:47 http://pastebin.com/Er7Xv2Yf Sep 07 14:12:03 I only posted the parts I think are relevant, if you need anything else let me know Sep 07 14:12:08 k Sep 07 14:15:02 so your problem i take it is trycomplexsensr Sep 07 14:15:43 yes Sep 07 14:16:13 after you create components, i find sometimes it's a good idea to reflow and or render(). that's really the best time Sep 07 14:16:29 your fit stuff looks good Sep 07 14:17:30 ok, that's what I thought, I've tried a bunch of different combinations of reflow/render Sep 07 14:18:54 you know, you can do createComponents([ ..... ]) and put a super long components block, just like you would do up top in a normal kind, instead of doing numerous statements Sep 07 14:18:58 various things get added to formDiv, or formDiv.$.acc.$.qs.$.accordionItemContent, on the fly Sep 07 14:19:03 it works for nested components too Sep 07 14:19:15 I guess I did sort of know that Sep 07 14:19:32 it could help you visualize better too Sep 07 14:19:35 do you think that'll help? Sep 07 14:20:07 yeah, it'll shorten that up a lot, and make it easier to read at the very least Sep 07 14:20:58 it might not solve the problem. but anyways.. i think formDiv should have the enyo fit class Sep 07 14:21:47 if you do that and uncomment your fits at the top of trycomplexsensr, and in the trycomplexsensr definition, you MIGHt see what you want. worth a shot Sep 07 14:24:36 what do you mean in the trycomplexsensr definition? Sep 07 14:24:44 w/in CSenseMenuPane? Sep 07 14:24:57 yeah Sep 07 14:30:19 putting it all within one createComponents block changes the owner Sep 07 14:31:20 oh yeah, right, if you wanted the owners the way they are. i usually like the owner to be the file myself Sep 07 14:43:39 no, changing the owners breaks a lot of other stuff Sep 07 14:46:14 the issue is that the div itself for trycomplexsensr is height 0 Sep 07 14:48:31 =[ this is "required / recommended" java software for online class. first run: http://i.imgur.com/snRVO.png Sep 07 14:48:44 i swear i hadn't even used it Sep 07 14:49:43 summatusmentis: do your other views have height? Sep 07 14:50:09 can you rephrase? Sep 07 14:50:53 does campList, lboard fit properly? Sep 07 14:52:00 yeah Sep 07 14:52:40 so my next question would be, what's the difference between those kinds and the trycomplexsensr kind? Sep 07 14:53:51 trycomplexsensr is generated on the fly, I think is the major difference Sep 07 14:54:53 right, but with headers/ layout kinds, do the camplist and lboard use different kinds and fit properties than the trycomplexsensr Sep 07 14:55:41 lboard is a List Sep 07 14:55:48 otherwise, I don't think so Sep 07 15:00:05 when I declare lboard, I can't set fit: true, otherwise the height goes to 0 Sep 07 15:00:22 beyond that, neither of those are using complex layering of fittable Sep 07 15:06:40 what happens if you put height:100%; to style in tryocmplexsensr Sep 07 16:20:47 fxspec06: omg, why does that work? Sep 07 16:20:52 ugh Sep 07 16:20:59 ;) Sep 07 16:21:24 it works, and you can use it, because there's nothing ON the page when it's first rendered Sep 07 16:21:50 I'm so angry about all this Sep 07 16:22:22 i know, but i really don't think there's anything wrong with doing that. Sep 07 16:23:47 no, I agree. It's just really frustrating Sep 07 16:24:08 so now I just need the scroller to work properly Sep 07 16:34:29 that should fit easily now Sep 07 16:37:53 yeah, I just need to figure out the right hierarchy Sep 07 16:59:39 summatusmentis: it COULD be that because it's a control, it has trouble fitting Sep 07 16:59:44 o.O Sep 07 17:00:01 that would actually make sense Sep 07 17:01:08 so does that mean that I _have_ to give it a specific height? Sep 07 17:03:24 not necessarily. if you put height 100% on the control, you can put it inside a fittable and it should expand to the fittable. but that would mean that you do _have to specify a height Sep 07 17:04:05 wait, you're saying I have to say "height: 100%", but it doesn't necessarily have to be in px? Sep 07 17:04:37 right Sep 07 17:05:00 but this is the barrier of my knowledge Sep 07 17:05:13 components vs controls again, grey area Sep 07 17:05:53 yeah, I don't quite understand the differences either Sep 07 17:07:18 when controls are inside components, 100% is relative ..? so it should act like a fit Sep 07 17:09:19 also interesting is when you apply enyo-fit to a control, sometimes it ignores its parent container. from my brief testing yesterday Sep 07 17:11:36 I've had that happen Sep 07 20:19:33 do button tap events propagate up or down? Sep 07 22:42:15 up Sep 07 23:07:38 summatusmentis: makes more sense to propagate them up Sep 07 23:28:08 everything propagates up the ownership hierarchy (unless it comes from enyo.Signals.send or enyo.waterfall/waterfallDown Sep 07 23:28:12 ) Sep 08 00:01:35 right, so, in theory I ought to be able to catch a button ontap event up the tree quite a ways? Sep 08 00:07:32 summatusmentis: absolutely, as long as you don't have a handler somewhere that goes first and returns true Sep 08 00:08:01 i <3 that return true stuff Sep 08 00:08:42 wait, so I can't have a handler? or I just can't return true Sep 08 00:09:00 can't return true Sep 08 00:09:59 right, that's what I thought Sep 08 00:11:18 can I bind ontap in the declaration like - ontap: enyo.bind(this, "functionName") Sep 08 00:11:21 ? Sep 08 00:12:08 i don't think so, because i'm pretty sure ontap will only work with a string. Sep 08 00:12:46 I think the scope is wrong then Sep 08 00:14:18 doesn't seem to be propagating :-/ Sep 08 00:14:45 so, yeah you can't bind an actual function that way. I THINK you can do something like this in create/rendered/wherever it needs to be: this.$.thingIWantToCatchATapOn.ontap = enyo.bind(...); but not 100% sure that will work Sep 08 00:15:11 except, I've got like, 16 things I want to catch a tap on Sep 08 00:15:50 previously I was catching it, and re-propagating a different event Sep 08 00:15:53 but that seems stupid Sep 08 00:16:15 it depends....I've had to do apps that way before, but it feels icky, I agree Sep 08 00:16:50 this.$.detailContent.onTransitionFinish = "popit"; Sep 08 00:17:13 that's what i use in my code, i don't think i could get enyo.bind to work. but i might have not tried it Sep 08 00:17:13 and I'm trying to speed up the reaction to the button being hit Sep 08 00:18:02 you could do onmousedown, but that might be ridiculous Sep 08 00:18:31 that's not gonna be better I don't think Sep 08 00:18:52 there is a special shortcut for enyo.Controls, the tap property. I think THERE you can certainly bind a function to run. Note that that is being handled in the control itself and NOT the owner Sep 08 00:19:05 tap: enyo.bind(...) Sep 08 00:19:27 does setting a handler within the button derived kind stop propagation? Sep 08 00:19:37 makes sense. i forgot about that one, yeah that'd work Sep 08 00:19:38 should not Sep 08 00:19:51 it does Sep 08 00:20:00 at least, within the handlers block Sep 08 00:20:26 hmmm, weird. That's probably a bug Sep 08 00:20:50 I'm setting up a fiddle atm...I switched back to my win box and I can't seem to get my local dev stuff functioning atm Sep 08 00:21:41 here's a starting place Sep 08 00:21:41 http://jsfiddle.net/28Nvs/ Sep 08 00:23:01 I feel like I vaguely remember something in release notes about this Sep 08 00:24:20 nope, can't find it Sep 08 00:26:24 grrr, does jsfiddle preclude us from testing events? can't get a simple ontap to go Sep 08 00:29:00 what do I need to get enyo code to run? do I need an equivalent to an index.html? Sep 08 00:30:00 yeah, you just need something that opens in the browser and loads enyo.js in the head Sep 08 00:30:52 I can't get it to even go Sep 08 00:31:02 summatusmentis: i think a feature could slightly alleviate that, but i haven't written one yet Sep 08 00:31:14 okay, gimme some minutes Sep 08 00:31:17 summatusmentis: (the naming issue for the function names) Sep 08 00:31:27 (of the ontap handler) Sep 08 00:31:53 yeah, it's just weird Sep 08 00:32:43 summatusmentis: it is normal, thing is: you can't give that definition when the object is created, because the function doesn't mean what you want it to mean. that's also why i'm a tad in doubt as to whether or not enyo.features can actually fix it. Sep 08 00:33:06 so, it was just working, but it's not anymore? Sep 08 00:50:40 this seems to be completely arbitrary as to whether or not it works Sep 08 00:50:50 something else has to be catching these Sep 08 00:58:54 sugardave: any progress? now I can't make it work Sep 08 01:06:13 summatusmentis: this works (but not in jsfiddle) Sep 08 01:10:57 hmm, I guess that's not a complete match is it....thing2 is still owned by App Sep 08 01:11:15 wait, what? Sep 08 01:11:21 which works? Sep 08 01:11:25 did you post a link? Sep 08 01:11:29 oh shit, sorry Sep 08 01:11:41 http://jsfiddle.net/sugardave/fPvDg/ Sep 08 01:12:18 so wait, thing2 is owned by App there? Sep 08 01:12:20 why? Sep 08 01:14:43 anything declared in a kind's components block is owned by that kind unless you specify differently via owner property Sep 08 01:14:50 or setOwner after it has been inited Sep 08 01:16:46 hrm Sep 08 01:45:21 summatusmentis: this one is better http://jsfiddle.net/sugardave/fPvDg/1/ **** ENDING LOGGING AT Sat Sep 08 02:59:58 2012