setBreakpoints method
void
setBreakpoints()
Set breakpoints and breakpointSegments.
Implementation
void setBreakpoints() {
// Optimization. Only update breakpoints if dimensions have changed.
if ((windowWidth != getWindowWidth()) ||
(windowHeight != getWindowHeight()) ||
(windowWidth == 0)) {
windowWidth = getWindowWidth();
windowHeight = getWindowHeight();
breakpoints.clear();
breakpointSegments.clear();
breakpoints.addAll(getActiveBreakpoints());
breakpointSegments.addAll(calcBreakpointSegments(breakpoints));
}
}