**** BEGIN LOGGING AT Tue Mar 26 02:59:58 2013 Mar 26 13:09:13 hey guys, I'm having a problem w/ enyo.ImageCarousell Mar 26 13:09:34 When I render it to document.body, it shows up fine Mar 26 13:10:04 But whenever I render it to an empty div, it always has a height of 0 Mar 26 13:18:16 I feel like there should be a simple fix, but as of yet, I have not found it. Mar 26 14:05:56 Hi, can somebody tell me why http://pastebin.com/jjxjiqtx creates random circles all over the Canvas with changing sizes? Mar 26 14:06:14 It seems to ignore the bounds value completely and just doing something random Mar 26 14:18:29 ciko, can you put that on jsfiddle? Mar 26 14:19:28 I never did, but I can try Mar 26 14:19:47 The html file just calls the App, nothing special over there Mar 26 14:20:40 lol, well, I can't even see anything at pastebin from work, since it is blocked Mar 26 14:25:42 Here it is http://jsfiddle.net/j8hjV/ Mar 26 14:26:42 If I provide the bounds value at creation time everything is fine Mar 26 14:28:29 what are you testing this on? Mar 26 14:30:39 Chrome it is Mar 26 14:31:07 I can try FF Mar 26 14:31:52 Firefox does well.. Mar 26 14:32:04 So it seems to be a webkit problem? Mar 26 14:34:25 just making sure Mar 26 14:34:48 So what is the intended functionality of this code? Mar 26 14:35:22 Its just a test, adding a circle when you click the mouse Mar 26 14:35:44 But it should always be the same position and same size obviously Mar 26 14:35:55 ok Mar 26 14:36:02 Instead, Chrome generates random sized circles all over the Canvas Mar 26 14:37:32 yea Mar 26 14:37:42 I'm getting that on FF, too Mar 26 14:39:12 So random circles on FF? Mar 26 14:43:31 yea Mar 26 15:18:48 ok Mar 26 15:18:59 So, I found a lead Mar 26 15:19:57 If you move the bounds declaration from the kind definition to a parameter for when you add the circle, it seems to actually set the bounds Mar 26 15:20:53 I'm thinking that it doesn't realize that you set the bounds in the definition Mar 26 15:26:29 http://jsfiddle.net/j8hjV/1 Mar 26 15:26:57 there's a solution that works, but not as simple as what we want Mar 26 15:27:52 oh wait Mar 26 15:28:32 the API says that the default constructor sets the bounds to random values Mar 26 15:28:57 I'll have to look into the bootplate code and see what's going on Mar 26 15:34:20 I can't find the canvas source files :/ Mar 26 15:34:38 is that not in the bootplate? Mar 26 15:46:09 ok Mar 26 15:46:15 ciko Mar 26 15:46:35 It looks like enyo.canvas.Control Mar 26 15:46:49 hard sets the bounds Mar 26 15:47:25 and then tries to mixin the stuff you send as properties, most likely sent into the constructor Mar 26 15:47:46 so it will ignore any default values for the properties Mar 26 16:12:06 ya, who needs a testing framework anyways... Mar 26 16:23:21 ? Mar 26 16:35:57 i have been asking what js test frameworks people are using with enyo… and received no answers ;) Mar 26 16:36:20 but would really like to integrate with cucumber.js. Mar 26 16:36:38 wondering if I could integrate with ares Mar 26 16:37:17 seems to be a little niche or trend to run js tests in a browser... Mar 26 16:37:51 Enyo has its own unit testing framework they wrote Mar 26 16:38:20 afaik Mar 26 16:56:54 right, i will look into that… just wondering what others are using with enyo... Mar 26 17:02:59 hey rrix Mar 26 17:34:16 Anybody had issues with onyx.checkbox not showing up checked, even with checked: true set Mar 26 17:34:20 ? Mar 26 17:43:49 @projectAlarum are you in firefox? Mar 26 17:50:47 I don't really use onyx.Checkbox because you can't customize the colors w/o making new images Mar 26 17:57:58 hey grayb0x, you wouldn't happen to know the solution to the problem I mentioned a couple of hours ago, would you? Mar 26 18:06:20 @GodGinrai about the canvas issue? Mar 26 18:07:40 so far I have yet to use the enyo.ImageCarousell Mar 26 18:10:05 aw. damn :/ Mar 26 18:10:23 and no, ciko was the one w/ the canvas issue Mar 26 18:28:40 I started messing with Enyo when first went open source and have used it to make a few small interactive forms etc, just starting to get more into it heavily as of recent. Mar 26 18:31:16 I am trying to figure out how to include an external resource in something like the package.js file I know you can have '*.js', '*.css' etc but what if I wanted to include something like '//maps.googleapis.com/maps/api/js' Mar 26 18:31:55 the dependency loader doesn't seam to work with whole urls Mar 26 18:41:41 that's not the problem w/ that, grayb0x Mar 26 18:42:21 the dependency loader doesn't do folders unless they have a package.js in them Mar 26 18:43:59 yeah but the file I am trying to load doesn't have a *.js ending for googles maps api Mar 26 18:46:18 have you tried accessing that url you are using? Mar 26 18:46:26 I'm getting an error when I do Mar 26 18:48:00 http://maps.googleapis.com/maps/api/js ? I get a HTTP 200 OK from google with a content type of text/javascript with some boot loader stuff google maps uses to start loading mapping data Mar 26 18:48:26 when I access the url directly in an browser Mar 26 18:51:16 I got a rejected request Mar 26 18:51:55 Oops, that my fault had to have the query string added, http://maps.googleapis.com/maps/api/js?sensor=false Mar 26 18:57:27 I was able to get the checkbox working by using setAttribute - Thanks grayb0x Mar 26 18:58:49 yeah np, I am not sure why setChecked(true||false) doesn't work as it should cause a change event on enyo.Checkbox Mar 26 18:59:01 congrats projectAlarum Mar 26 18:59:21 also, projectAlarum, which browser are you testing in? Mar 26 18:59:42 I'm testing in chrome, and ie8/9 Mar 26 19:00:03 and it didn't work in all 3 using setChecked? Mar 26 19:01:20 No, when defining the kind, using checked: true, would not visually indicate it was checked, if I checked the value of the object in the log it would should true as being checked though.... Mar 26 19:01:25 oh Mar 26 19:02:35 can you jsfiddle the non-working code? Mar 26 19:03:20 I'd like to look into why it didn't work. That way, you might not have to use a workaround :) Mar 26 19:28:51 scoutcamper: ever worked w/ enyo.ImageCarousel? Mar 26 19:29:00 nope Mar 26 19:31:10 :/ Mar 26 20:11:04 @GodGinrai here is a quick example of the problem when including the depends for google maps API threw enyo.depends it loads the wrong url, http://jsfiddle.net/EMWgH/ Mar 26 20:12:18 it seams to be an issue with loader.js around line 147 and path checking that happens when depends loads the args from the loader. Mar 26 23:16:43 Okay, sorry about that, got caught up with another project here at work.... So I loaded a sample of the code on jsfiddle.net/projectalarum/LArGE/4/ Mar 26 23:17:11 This is the checkbox not being checked issue, along with onyx.input not having any styling for some reason.... Mar 26 23:19:18 Sorry, try jsfiddle.net/projectalarum/LWgEW/ Mar 26 23:23:44 playing with it now Mar 26 23:33:47 hmmm, trying to figure out why this one works http://jsfiddle.net/jb6My/ but jsfiddle.net/projectalarum/LWgEW/ doesn't Mar 26 23:37:03 I think there is something else going on that is cascading down and messing with the styling, for example, the onyx.inputs on mine don't have any styling/background for some reason as well Mar 27 00:46:55 I think I found your problem @projectAlarum Mar 27 00:51:11 hi Mar 27 00:53:05 hello Mar 27 01:01:02 this problem with http://jsfiddle.net/projectalarum/LWgEW/ was in the rendered: function () {...}; , this.inherited(arguments); was missing causing the render cascade to never happen. **** ENDING LOGGING AT Wed Mar 27 02:59:58 2013