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();
breakpoints.addAll(getActiveBreakpoints());
breakpoints.sort(ResponsiveUtils.breakpointComparator);
}
}