Login Register

dijit.Dialog

Random main window scroll on dialog.hide()?

So i'm using dialogs heavily as my 'edit' function for my site. Essentially I set the content of the dialog to be a dtl generated form that my users enter information into. The form uses a simple image div rather than a submit or execute button. My problem is that, randomly and I'd say about a 1/3 of the time, if the main window is 'scrolled down' at all (i.e. not completely at the top), the dialog hide() method will cause the main window to snap to the top. It looks pretty ugly and I can't seem to figure out why it's happening.

Why does my Dialog expand to the size of the screen in IE when I have a contentpane with a form in it as the content?

The dialogs I use have different content inserts that are like content wrappers depending if I need a footer with buttons etc. But in IE the dialog expands to the width of the page and I need it to size to the content. Seems all the examples do this but not mine and I can't see the difference I haven't extended or changed the dialog CSS. Any help would be great I've been banging my head on my keyboard for the last two days over this.

dijit.Dialog et javascript

Bonjour,

je viens vers vous au sujet du widget Dialog de dijit. je rencontre une difficulté majeur, j'utilise donc ce widget pour ouvrir plusieurs dialog dans une page html.

En utilisant un dijit.byId('maDialog').setHref(UrldeMaPage);

Dans la page html que je charge dans la boite de Dialog se trouve du javascript .
Mon souci est que le javascript qui se trouve hors input (des fonctions, appel de fonctions) n'est pas exécuté.

Good morning,

scrollable dijit.Dialog ?

Hello,

we use the dijit.Dialog for showing news content when clicking on the news title, see http://www.schaakliga-antwerpen.info/newsbox.php.

It works brilliantly and our users (who post these messages) are really very positive about this new feature.

But... I do not find any option to provide scrollbar's, or to make the dialog scrollable.
Is this feature supported, and if so, how does one configure it ?

The problem is that if the content gets to big, a scrolling event repositions the screen, not the text within the dialog, so yet get a kind of bouncing behaviour.

Any advice?

dijit.Dialog error - putting the dialog at the center only works for small dialogs

I've found that tall dialogs in dijit.Dialog result in an impossible location of the dialog. The top is above the page and the bottom below, making it impossible to exit or edit (scrolling doesn't work since the scroll event reposition the dialog).

The _position function in dijit.Dialog doesn't consider the size of the dialog box. Here is my solution, maybe not the prettiest but it seems to work:

_position: function(){
// summary: position modal dialog in center of screen

if(dojo.hasClass(dojo.body(),"dojoMove")){ return; }
var viewport = dijit.getViewport();

dijit.Dialog trap close

Hi,
I am using a dijit.dialog widget to enter login/pass. For this, I am using the following code :

Login:

Mot de Passe:

Turning off Dialog's Drag and Drop

I cant seem to find anywhere how to turn off the Dialogs default behaviour of being dragable.Any help would be extremely welcome.

Is there an event hook to the end of a widget's "fadeIn" operation?

Hello,

I'm wondering how I could go about hooking on to the 'fadeIn' animation of a dijit.Dialog in order to perform an event once the Dialog is fully visible and drawn to the screen.

The 'show' event is not adequate. I have in my code, immediately following Dialog.show(), the instantiation of a SWFobject once the Dialog is visible, but on IE7 it is quite ugly-- the SWFobject immediately appears and then a second or two later, the dialog itself.

What do you think? Is there a such a mechanism?

Flash bug in Firefox

Hi all,

This is a problem I have been trying to find a way around for quite some time. With Firefox v2.0 for Macintosh and Flash Player 9,0,115, I am experiencing with a good solid majority of .swf files screen drawing problems. I have tried different methods of embedding them, using SWFObject, FlashObject, etc.. The flash player will not completely draw the first frame, only 'moving' bits after that first frame.

This problem occurs fairly consistently when trying to put Flash content inside a dijit.Dialog.

Is there a way to specify InnerWidth and InnerHeight of a Dialog during creation?

Hello all,

[When creating a dijit.Dialog programmatically,] I know I can specify the outer width and height of a Dialog upon creation using css width/height in the style attr, but how could I specify InnerWidth and InnerHeight of the contentBox inside? Is there such a way?

Thank you :o)

Reuben

Syndicate content