Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(204)

Issue 1666046: Issue 1237: Playground runs script before cajoled HTML laid out. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 9 months ago by MikeSamuel
Modified:
15 years, 9 months ago
Reviewers:
Jasvir
CC:
google-caja-discuss_googlegroups.com
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

The offsetWidth,offsetHeight, etc. are only valid for HTML elements that are part of the DOM and laid out. If any ancestor is display:none then it will not be laid out so offsetWidth,etc. return stale data. This changes PlaygroundView to make the editor tab visible before the dynamic JS portion of the cajoled output is run. Submitted @4159

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -8 lines) Patch
M src/com/google/caja/demos/playground/client/ui/PlaygroundView.java View 1 chunk +4 lines, -1 line 0 comments Download
M src/com/google/caja/demos/playground/taming.js View 4 chunks +7 lines, -7 lines 0 comments Download

Messages

Total messages: 2
MikeSamuel
15 years, 9 months ago (2010-06-29 04:03:22 UTC) #1
Jasvir
15 years, 9 months ago (2010-06-29 18:11:18 UTC) #2
LGTM
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b