public static boolean shouldTrackViewportWidth(Component comp) {
		Container parent = comp.getParent();
		if (parent instanceof JViewport) {
			Dimension available = parent.getSize();
			Dimension prefSize = comp.getPreferredSize();
			return prefSize.width < available.width;
		}
		return false;
	}