**** BEGIN LOGGING AT Wed Sep 10 02:59:58 2014 Sep 10 13:39:38 fels_zh_: you really need to get your internet service fixed <.< Sep 10 13:40:50 hey chall Sep 10 13:41:07 morning SimpsonTP Sep 10 13:44:57 g'morning, GodGinrai Sep 10 13:46:24 hi al Sep 10 13:46:53 I'm trying to remember, were you the one having problems with the DataLists yesterday? or was that someone else? Sep 10 13:46:59 SimpsonTP: my name's not al :P Sep 10 13:49:09 fels_zh: you're killing me, man! T_T Sep 10 13:50:20 yeah it is anoying Sep 10 13:50:31 GodGinrai, nope not me Sep 10 13:51:12 SimpsonTP: whoops, didn't address a name. I was actually asking chall that. (He joined just before you) Sep 10 13:52:50 np Sep 10 14:02:52 sorry .. :( Sep 10 14:08:06 fels_zh_: Nothing against you. We'd just like your connection problems to go away ;) Sep 10 16:46:09 GodGinrai, that was me, yes Sep 10 16:48:31 chall: did you ever end up with a solution? Sep 10 16:50:04 nope Sep 10 16:50:11 :\ Sep 10 16:50:21 I had to set it aside and work on other stuff Sep 10 16:53:00 I see Sep 10 17:12:28 hey chall, so while that fiddle you provided yesterday made it possible for me to see the problem you were running into... I still don't understand why you are doing it. I feel like there should be a more straightforward way to do what you want, but I can't suggest one because I'm not sure what exactly it is that you are trying to do. Sep 10 17:14:23 GodGinrai, the problem is that the association I'm loading is an address Sep 10 17:14:44 if it was a single line, I probably never would have run into this Sep 10 17:15:06 but, because the address can be 2-4 lines, I don't actually know beforehand what it will look like Sep 10 17:16:00 and you said that fixedChildSize did not work? Sep 10 17:16:08 it didn't Sep 10 17:16:34 hrmm Sep 10 17:16:40 that's setting aside the fact that I can't really use it anyways Sep 10 17:17:15 well, that's not entirely true, but it would make my rows take up a lot more space than they really need Sep 10 17:17:20 most of the time Sep 10 17:22:22 chall: 2 questions: 1) Why do the addresses need to be loaded after the list is displayed? 2) What's wrong w/ having everything in the list have the same height? (it's not wasted space if designed well) Sep 10 17:24:48 GodGinrai, 1) because not doing so involves doing an even larger amount of work. 2) because fixing the height at it's theoretical maximum doubles the size of all rows when most rows won't need the extra space Sep 10 17:27:50 plus, it seems like both of those are ignoring the problem Sep 10 17:28:30 that problem being that there's no way for me to tell the list, effectively, that the sizes of its children have changed and that it should refigure how big they should be Sep 10 17:28:39 Well, you kind of misunderstood what I meant by "1", but yes, "2" is essentially ignoring the problem Sep 10 17:29:14 what did you mean in "1", then? Sep 10 17:29:47 there's nothing to display before the data loads, right? Sep 10 17:29:54 wrong Sep 10 17:30:24 this is a list of building data. The only thing I'm loading dynamically is the address Sep 10 17:30:33 hrmm Sep 10 17:30:45 brb Sep 10 17:30:47 kk Sep 10 17:30:54 have a "maybe-cancelled" meeting I need to check on Sep 10 17:31:04 those are the best! Sep 10 17:31:04 if the meeting happens, I'll be gone for ~1-2 hours Sep 10 17:31:14 if not, then I'll be back in ~5 min :P Sep 10 17:32:41 back Sep 10 17:32:47 wb Sep 10 17:32:49 ty Sep 10 17:32:52 so Sep 10 17:32:56 you've got building info Sep 10 17:33:04 and then an address that gets added along w/ it Sep 10 17:33:12 but the building info is pre-loaded? Sep 10 17:33:35 no, the building info is actually fetched when the datalist is created Sep 10 17:33:46 but the addresses are not? Sep 10 17:35:12 I see where you're headed with this and the short answer is that loading them both doesn't actually ensure that the problem is solved Sep 10 17:35:32 why is that? Sep 10 17:35:47 mostly because it would require me to duplicate a bunch of code Sep 10 17:36:27 but also because it would require me to add a bunch of overhead to keep track of multiple asynchronous tasks and ensure that the whole thing waits until they're both done Sep 10 17:39:43 I would rather write my own DataList than add all that complexity to the code Sep 10 17:40:00 not that I want to do that, either Sep 10 17:56:06 chall: there is a way to tell it that the size has changed btw Sep 10 17:56:08 it's resized Sep 10 17:56:19 that's why I did that before Sep 10 17:56:48 chall: take a look here: http://jsfiddle.net/r2amL18g/7/ Sep 10 17:57:29 All you *should* need to do is just call resized() on the DataList after you've updated the models in the collection Sep 10 17:57:45 reset() should also work Sep 10 17:58:33 excepting that it doesn't Sep 10 17:58:39 (the undefineds were because I was too lazy to change the this.value) Sep 10 17:58:52 chall: it works in the fiddle I just sent you Sep 10 17:59:04 yes, and you also fundamentally changed HOW it worked Sep 10 17:59:10 yes Sep 10 17:59:10 I can't change my code to work like that Sep 10 17:59:36 are you running a separate ajax query for each element in your list? Sep 10 17:59:43 it's not ajax, but yes Sep 10 17:59:55 well, wait Sep 10 18:00:05 what do you mean "each element in your list"? Sep 10 18:00:29 each of your "evilchild"s Sep 10 18:00:33 yes Sep 10 18:00:54 actually, here Sep 10 18:01:24 https://github.com/pangea/xcore-gui/blob/master/client/views/widgets/displays.js#L152 Sep 10 18:02:06 this is the base kind that "EvilChild" is meant to emulate Sep 10 18:02:27 the XV.RelationDisplay? Sep 10 18:02:28 I have a specific subkind of this (that I can't show you, sorry) that I'm actually displaying. Sep 10 18:02:34 but all the functionality is in that Sep 10 18:02:36 yes Sep 10 18:04:10 findModelByKey does a fetch() if it can't find the model locally Sep 10 18:04:56 so why are you storing the Model in the displayed kind rather than in the DataList's collection Sep 10 18:04:59 ? Sep 10 18:05:33 different models Sep 10 18:05:44 a relation describes a view to a related model Sep 10 18:06:01 so, in my case I have a list of Buildings with related Addresses Sep 10 18:06:23 and then I have an "AddressDisplay" that subkinds "RelationDisplay" Sep 10 18:07:28 Yea, but rather than that, why not have the models in your collection contain both building and address info? Sep 10 18:08:10 reasons? Sep 10 18:08:17 that's not a decision I can affect Sep 10 18:08:36 I have to live with it, unfortunately Sep 10 18:09:05 It honestly makes more sense to do it that way. The Collection is supposed to be where the data in the list comes from. Sep 10 18:09:27 By putting model in the display kinds, you are merging the data with the view Sep 10 18:09:33 this is why reset doesn't work Sep 10 18:09:45 because when you reset, it loses all the models that are in your viewkinds Sep 10 18:09:51 I'm aware Sep 10 18:09:57 unfortunately, I can't do anything about that Sep 10 18:10:44 got some stubborn tech lead or something? Sep 10 18:12:19 no, we just can't modify this data structure Sep 10 18:12:43 ever heard of xTuple? Sep 10 18:12:54 I have, but I've never used it Sep 10 18:13:03 why? Sep 10 18:13:12 because that's what is backing this client Sep 10 18:13:35 ok, but how the kinds are made are up to you, right? Sep 10 18:13:43 on the front end, yes Sep 10 18:13:49 Ok Sep 10 18:14:15 so what prevents you, then, from having a collection w/ both the buildings and the addresses in it? Sep 10 18:15:08 I don't understand the question Sep 10 18:15:19 that's what you said you can't do, right? Sep 10 18:15:23 no Sep 10 18:15:33 so what is it that you can not do? Sep 10 18:15:55 I can't put the address information on the building model Sep 10 18:16:19 So first I will ask: why? Sep 10 18:16:21 I got "put the Address model in the Building model" out of this conversation Sep 10 18:16:40 And no, I want the model that the datalist has to include the information for both Sep 10 18:16:49 I never said it had to be the particular building model Sep 10 18:16:58 okay, I can't do that Sep 10 18:17:04 like Sep 10 18:17:11 I don't have time Sep 10 18:17:19 what you're asking will take me weeks of rewriting Sep 10 18:17:22 literally everything Sep 10 18:17:23 I can't Sep 10 18:17:42 is that the answer to the why? Sep 10 18:18:03 not that thing in particular Sep 10 18:18:20 but making that change modifies how a core piece of the app functions Sep 10 18:18:25 hey, make a "show me the address!" button instead Sep 10 18:18:35 doesn't fix anything Sep 10 18:18:48 can give you a fixed row height :D Sep 10 18:19:03 and is terrible UX Sep 10 18:19:19 sugardave: we've already shown him ways to avoid the problem (fixed-height) Sep 10 18:19:22 this is why I only writed logic Sep 10 18:19:26 sugardave: he's looking for a solution Sep 10 18:19:29 s/writed/write/ Sep 10 18:19:29 sugardave meant: this is why I only write logic Sep 10 18:19:30 hi Sep 10 18:19:38 hey SimpsonTP Sep 10 18:19:39 sugardave, got the ilib stuff working Sep 10 18:19:42 woo! Sep 10 18:20:40 chall: Just use a combined model that contains the normal building model and the address model and put that in a collection Sep 10 18:21:37 (or instead of containing, it could even just generate said models when certain getters are called) Sep 10 18:22:08 actually, containing would probably make it easier to tie to your current setup that builds a list of building models Sep 10 18:23:00 this collection would then go into your DataList and would contain all your data Sep 10 18:34:57 SimpsonTP: congrats on getting the iLib stuff working Sep 10 18:35:12 gonna make a howto for those who come after you? :P Sep 10 18:37:09 yeah, probably put something on a blog Sep 10 18:37:25 cool cool Sep 10 18:37:37 but I'm now in a 5 shift period so no time for it Sep 10 18:37:48 I see Sep 10 18:58:00 good day enyos Sep 10 18:58:02 wowow busy busy Sep 10 19:01:31 morning dmanderson Sep 10 19:02:06 dmanderson, looked at the grunt stuff already ? Sep 10 19:07:23 I looked :) Sep 10 19:24:18 :P **** ENDING LOGGING AT Thu Sep 11 02:59:58 2014