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

  • Home
  • SEARCH
  • 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 253157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T21:44:17+00:00 2026-05-11T21:44:17+00:00

I am calculating the maxHeight of an Image embedded in a Canvas-based component that

  • 0

I am calculating the maxHeight of an Image embedded in a Canvas-based component that is part of a Canvas-based component that is the child of an Accordion.

I need to get the actual number of pixels available to the currently selected child Container. Oddly enough, measuredHeight and getExplicitOrMeasuredHeight() give the design-time size of the Canvas I used as an Accordion’s child Container. not the run-time size based on height="100%" or top="10" bottom="10".

I expected that the Accordion’s children will be sized to the client area of the Accordion and that would allow my code to figure out how large the Image could be without inducing scroll bars. I’ve walked through the Accordion.as source, but nothing jumps out at me. I’m about to sub-class Accordion just to make protected function get contentHeight():Number a public function.

Any ideas?

  • 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-11T21:44:18+00:00Added an answer on May 11, 2026 at 9:44 pm

    Maybe this will help:

    accordion.height - (accordion.numChildren * Number(accordion.getStyle("headerHeight")))
    

    and optionally + border widths.

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

Sidebar

Related Questions

Possible Duplicate: Calculating the Difference Between Two Java Date Instances How do I get
I am calculating something that takes some time. For that I've created an inner
I am calculating 16 bit checksum on my data which i need to send
I am calculating the number of days between the 'from' and 'to' date. For
Was calculating a massive amount of data that took two weeks to run. When
When calculating math.factorial(100) I get: 93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000L Why is there an L at the end
I am calculating a column based on existing tables column, but I don't know
I'm aware of calculating number of days between two dates. Java, Calculate the number
I am calculating a padding offset from my css file with Jquery. I need
We are calculating totals from percentages that must match up to the original total.

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.