Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5849983
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T13:04:38+00:00 2026-05-22T13:04:38+00:00

My objective is to build a Dojo widget that embeds some graphic information, for

  • 0

My objective is to build a Dojo widget that embeds some graphic information, for example an Analogue Gauge, along with some other stuff.

I have managed to build a widget and initialise the Analogue widget with code such as:

    gauge = new dojox.widget.AnalogGauge({
                id: "defaultGauge",
                width: 300,
                height: 200,
                cx: 150,
                cy: 175,
                radius: 125,

Now I’ve generalised this so that the width, height, cx, cy and radius can be calculated if I know the dimensions in which the widget will be rendered. Say for example, it’s going to be in the “top” region of a Border Layout of height 150px, then I can compute suitable values.

The question: how do I determine the available space for my widget to work in? Is there some API by which I can obtain this information from the Layout or Content Pane?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T13:04:39+00:00Added an answer on May 22, 2026 at 1:04 pm

    It seems that the widget can provide a

      resize(dimensions) 
    

    method, which is called both when the widget is first displayed and also when it is resized. The argument being an object holding the width and height of the display area.

    Hence if the

    gauge = new dojox.widget.AnalogGauge({
    

    code is moved into the resize method we can provide suitable size information to the gauge constructor. I have yet to understand how to deal with subsequent resize() requests.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new in iOS objective c and now I build an app that
I build a static library that uses Objective-C++. When it is used in a
The objective is to build a service that I will then consume via jQuery
I'm trying to build an application in Android using some codes from Objective-C (IPhone
So I want to build an application in Objective C for a site that
I want to build 2 apps: 1) iPhone objective c app. 2) Windows executable
My project is ARC enabled (the build settings have Objective-C Reference Counting set to
I need to build a backend for an iPad app done in Objective C.
Objective: I want to create a web service that allows me to connect to
Objective: In support of a Windows Service that may have multiple instances on a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.