void (Container parent) { super.layoutContainer(parent); if (myTagPanel != null && myTagPanel.isVisible()) { int baseline = myTagPanel.getBaseline(-1, -1); if (baseline != -1) { Rectangle versionBounds = myVersion.getBounds(); Dimension versionSize = myVersion.getPreferredSize(); int versionY = myTagPanel.getY() + baseline - myVersion.getBaseline(versionSize.width, versionSize.height); myVersion.setBounds(versionBounds.x, versionY, versionBounds.width, versionBounds.height); if (myDate.isVisible()) { Rectangle dateBounds = myDate.getBounds(); Dimension dateSize = myDate.getPreferredSize(); int dateY = myTagPanel.getY() + baseline - myDate.getBaseline(dateSize.width, dateSize.height); myDate.setBounds(dateBounds.x - JBUIScale.scale(4), dateY, dateBounds.width, dateBounds.height); } } } }