Login Register

size

StackContainer size

I'm trying to use a StackContainer to create three different "screens" of my webapp, with any one viewable at a time.

I'm creating the "shell" of the StackContainer and three ContentPanes (inside the StackContainer) in markup, then filling out the real content of the ContentPanes later by assigning stuff to each of the ContentPanes' innerHTML. The size of the real content won't be known until some data is loaded (via an xhrGet()), but will certainly be larger than the "shell".

how can I get the size value from a TextBox text field

I know that many people have commented that the TextBox widgets change the field size. They can only be changed with a style sheet specifying the width. I was hoping to get the size that was set in the input field so I could change the width proportional to that rather than have to create a width for each field's id.

Here's what I've got so far.

function changeSizes() {
var custForm = dijit.byId("custForm");
dojo.every(custForm.getDescendants(), function(elem) {
var thisclass = elem.baseClass;
var thisname = elem.name;
var thisw = dojo.byId(thisname);

Is it possible to have a narrow TextBox?

The design of one of our applications requires that a certain text box be only wide enough to display a few digits at a time (30px).

There's no problem actually setting the width to 30px but when a user types in the text box, they can only ever see one digit at a time. It seems the rest of the digits are being bumped out of view.

Button with showLabel="false" has first not the right size

I have some buttons which look like this:

<button dojoType="dijit.form.Button" onClick='save()' iconClass="saveIcon" showLabel="false">
   <span><b>Rich</b><i> Text</i> Test!</span>
</button>

I load this html snippet later, not with loading the site. I parse the node with dojo.parser.parse(node);
My problem is, that the button first has another size because of the span-tag. It takes a while until the button gets the correct size.
My iconClass:


.saveIcon {
background-image: url(icons/save.gif);
background-repeat: no-repeat;

Size modified on the grid when Grid.update () called

Hi,
First of all, all my apologizes for my english mistakes.

I have a problem using dojox.grid. I have a button that call an xhrGet to retrieve a Json file on the server. This xhrGet call a function, this one :

function createGrid (sResponse, ioArgs) {
            var grid = dijit.byId("gridu");
            var store = new dojo.data.ItemFileReadStore({data: sResponse });
            var gridModel = new dojox.grid.data.DojoData(null, store, {query:{date: '*'}, clientSort:true});
            grid.setModel(gridModel);
            grid.refresh();
        }

setting DateTextBox and TimeTextBox size

Hi everyone!

First of all, my greetings for this incredible toolkit, I just can imagine the hard work it has required...
Going straight to the point, I would like to change (exactly, to decrease) the size of a DateTextBox and a TimeTextBox (in other words, I need to set the width of the field to a shorter value).
On the Dojo book, I noticed the size attribute. I tried to set the size this way:
var startDate = new dijit.form.DateTextBox({ id: 'startDate',
constraints: {datePattern:'dd/MM/yyyy'},
required: 'true' },dojo.byId('startDatePickerDiv')

set initial dimension of contentPane on SplitPane

Hi at all
i have one problem on setting the initial size (width) of the AccordionPane who reside on a split pane:

I have this code:

CSS

html, body { height: 100%; width: 100%; margin: 0; padding: 0; }
 #left { width: 100px }

HTML

Syndicate content