-
18 Feb 2009 10:18 AM #1
[Solved] Ext.air.Notify doesn't display background.
[Solved] Ext.air.Notify doesn't display background.
I'm using Windows XP with plain black background. I can't see the notification message due to the foreground color is black on black background. Where do I need to look to add custom rounded-corners rectangle as the background?
-
18 Feb 2009 10:31 AM #2
I guess that you would get better response if you posted in the Air forum: http://extjs.com/forum/forumdisplay.php?f=23 Do you want me to move this thread there?
Jozef Sakalos, aka Saki
A lot of valuable info at:
Saki's Extensions and Plugins
Saki's Extensions and Plugins Docs
Saki's Examples, Latest: Grid in Card Layout
Saki's Blog, Featured: Writing a Big Application in Ext, Latest: Grid MultiSearch Plugin Video
-
18 Feb 2009 10:39 AM #3
-
18 Feb 2009 10:47 AM #4
Ok, it looks like the background is handled by "ext-all.css" But I still can't see the background. Any idea?
-
24 Feb 2009 7:51 AM #5
The same problem, just installed Ext JS Library - Air Support 0.30
Calling
displays notification with transparent backgroundCode:var sample = new Ext.air.Notify({ msg: "Test error", icon: 'images/error.png' });Ext JS + Adobe AIR solutions
-
4 Mar 2009 12:07 PM #6
Found the culprit with the Notify background issue. In the application.xml you have to use 1.1 namespace instead of 1.5. The background won't show if you are using 1.5.
Maybe this is a bug? But it's working now ...Code:<?xml version="1.0" encoding="utf-8" ?> <application xmlns="http://ns.adobe.com/air/application/1.1">
-
9 Mar 2009 8:58 AM #7
A better fix?
A better fix?
I had the same issue even when using the 1.1 xmlns, and actually found the issue to be that the "ext-all.css" file referenced in the newly created NativeWindow has a hard-coded path of "../extjs/resources/css/ext-all.css", and so would only work if the stylesheet was loaded there.
You can either change the hard-coded path in ext-air.js, or pass in the proper path using something like:
Hope that helps.Code:var notification = new Ext.air.Notify({ msg: 'Example', hideDelay: 6000, extAllCSS:'app:/lib/extjs-2.2.1/resources/css/ext-all.css' });
-
9 Mar 2009 10:58 AM #8
-
9 Mar 2009 11:07 AM #9
I assume you changed the path for the extAllCSS value to match your own application? I know it's sometimes silly, but thought I'd check.
If you post the code you are using to create your Notify, along with any errors you may have, that might help someone troubleshoot your issue better.
-
9 Mar 2009 11:31 AM #10
Here is mine:
I even tried:Code:var sample = new Ext.air.Notify({ msg: 'New Mail', icon: 'icons/new.png', extAllCss: 'lib/extjs/resources/css/ext-all.css' });
The background fails to show if I use:Code:var sample = new Ext.air.Notify({ msg: 'New Mail', icon: 'app:/icons/new.png', extAllCss: 'app:/lib/extjs/resources/css/ext-all.css' });
<application xmlns="http://ns.adobe.com/air/application/1.5">
But it works when I modified the xmlns to:
<application xmlns="http://ns.adobe.com/air/application/1.1">
I found this out by comparing the Ext.Player source file as suggested by Aaron. Ext.Player is also experiencing the same issue if I modified the xmlns from 1.1 to 1.5
At least for me it's working now with this solution.


Reply With Quote

