#14708 closed defect (fixed)
ViewController._parse() searches for a fixed bottom bar, breaks prematurely
Reported by: | loodwig | Owned by: | ykami |
---|---|---|---|
Priority: | high | Milestone: | 1.8 |
Component: | DojoX Mobile | Version: | 1.7.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
In the ViewController?._parse(text, id) method, the fixed bottom bar is detected and set as the value refNode. The loop that sets the refNode iterates over all children of the target, and "should" break when it finds the nodes that has the property "fixed=bottom". It breaks erroneously the first time it encounters a node that is an element (c.nodeType === 1). Almost always, the bottom fixed UL is the last element on the page. However, this can change if someone scrolls the page using the browser's drag emulator. To solve the problem, place the break element 1 level deeper:
if(c.getAttribute("fixed") === "bottom"){
refNode = c; break;
}
Attachments (1)
Change History (4)
Changed 8 years ago by
Attachment: | 14708-ViewController.js.diff added |
---|
comment:1 Changed 8 years ago by
Milestone: | tbd → 1.8 |
---|---|
Priority: | undecided → high |
Status: | new → assigned |
Note: See
TracTickets for help on using
tickets.
Diff between 27594 and my suggestion