The saddle height could be perfect and you can still have knee pain if the cleats are not set correctly. Also, everyone has a bit different pedal stroke but if you tend to excessively drop your heel or point your toes down that can also lead to knee pain.