Closed Bug 67181 Opened 24 years ago Closed 24 years ago

Unable to hide/show scrollbars programatically

Categories

(Core :: DOM: Core & HTML, defect)

x86
All
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 58539

People

(Reporter: adamlock, Assigned: danm.moz)

References

Details

Some embedders need to disable scrollbars on a frame. The logical way to do this would be through some code like this: nsCOMPtr<nsIDOMWindow> window; mWebBrowser->GetContentDOMWindow(getter_AddRefs(window)); nsCOMPtr<nsIDOMBarProp> scrollbar; window->GetScrollbars(getter_AddRefs(scrollbar)); scrollbar->SetVisible(PR_FALSE); Unfortunately, the ScrollBarsPropImpl class that implements nsIDOMBarProp just returns NS_ERROR_FAILURE. http://lxr.mozilla.org/seamonkey/source/dom/src/base/nsBarProps.cpp#231
Embed keyword
Keywords: embed
Blocks: 70229
Keywords: embedmozilla0.9.1
Reassigning to jst, CCing evaughan, changing component to DOM.
Assignee: karnaze → jst
Component: Layout → DOM Other
Over to danm who's working on the DOM window internals.
Assignee: jst → danm
Need to get this one fixed, don't I? *** This bug has been marked as a duplicate of 58539 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Component: DOM Other → DOM Level 1
Verified dup.
Status: RESOLVED → VERIFIED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.