When the CSS is changed the file isn't updated, so the changes are never visible. The code that controls loading the CSS file is as follows:

    // Check to see if there is any CSS.
    if (!empty($panelizer->css)) {
      ctools_include('css');
      $filename = ctools_css_retrieve($display->cache_key);
      if (!$filename) {
        $filename = ctools_css_store($display->cache_key, $panelizer->css);
      }
      drupal_add_css($filename, array('group' => CSS_THEME));
    }

Nothing is done when the CSS is changed so once the CSS is loaded the first time it stays that way.

Comments

damienmckenna’s picture

Issue summary: View changes
damienmckenna’s picture

StatusFileSize
new1.95 KB

This checks if the entity previously had a CSS value saved, if it did it deletes the old file and recreates it. FYI the new CSS file is immediately generated so that other tasks can act upon it during the same page execution, if needed.

damienmckenna’s picture

Status: Active » Needs review
damienmckenna’s picture

damienmckenna’s picture

StatusFileSize
new1.2 KB

Rerolled as there were some changes in those lines in #2181799: Not able to save multiple displays on an entity.

damienmckenna’s picture

StatusFileSize
new1.06 KB

Improved the logic so that the file will be deleted if it exists, not just if there was CSS before, and then only recreated if there's still CSS in the updated entity object.

damienmckenna’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.