Question T7666
Visible to All Users

Fixed First column of Matrix Dynamic

created 3 years ago

In one of the reply to the query for fixed first column of matrix dynamic you have given this css.
table.sv_q_matrix_dynamic {
  display: block;
  width: calc(100% - 150px) !important;
  overflow-x: scroll;
  margin-left: 150px;
}
table.sv_q_matrix_dynamic tr>th:first-child {
  position: absolute;
  width: 150px;
  margin-left: -150px;
  margin-top: 11px;
  border-bottom: 1px solid rgb(231, 231, 231);
}

It works fine with the default theme but does not work in the modern theme. So, if i have to fixed first column of matrix dropdown in modern theme what needs to be done.

Answers approved by surveyjs Support

created 3 years ago

Hello,

In modern theme you need to use another CSS class name. As far as I remember it should be the sv-matrixdynamic. You can check it via inspecting your markup.

Thanks, Serge
SurveyJS Team